Skip to content

Instantly share code, notes, and snippets.

View henriquensco's full-sized avatar
🐺
Hey, you!

Henrique Nascimento henriquensco

🐺
Hey, you!
View GitHub Profile
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Script de OSINT para investigação de perfis do Instagram
Script criado para o Aulão Semanal #086 com foco em Investigação de Contas do Instagram.
Para acompanhar minhas aulas de investigação digital, haking e privacidade, acesse: https://aulao.brunofraga.com/
Autor: Bruno Fraga @brunofragax
Versão: I don't know - script rapido - criado com manus.ai em 15min - porém efetivo)
"""
@henriquensco
henriquensco / icon-with-badge-tailwind.html
Created August 5, 2022 22:25 — forked from CodebyOmar/icon-with-badge-tailwind.html
Place a badge that show notification numbers or number of items in a cart at top right of an icon with tailwindcss
<button class="py-4 px-1 relative border-2 border-transparent text-gray-800 rounded-full hover:text-gray-400 focus:outline-none focus:text-gray-500 transition duration-150 ease-in-out" aria-label="Cart">
<svg class="h-6 w-6" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" stroke="currentColor">
<path d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"></path>
</svg>
<span class="absolute inset-0 object-right-top -mr-6">
<div class="inline-flex items-center px-1.5 py-0.5 border-2 border-white rounded-full text-xs font-semibold leading-4 bg-red-500 text-white">
6
</div>
</span>
</button>
var getDaysArray = function(start, end) {
for(var arr=[],dt=new Date(start); dt<=new Date(end); dt.setDate(dt.getDate()+1)){
arr.push(new Date(dt));
}
return arr;
};
var daylist = getDaysArray("2018-05-01" , "2018-07-01");
daylist.map((v)=>v.toISOString().slice(0,10)).join("");
@henriquensco
henriquensco / search.js
Created April 6, 2022 19:29
Busca de nomes mais próximos com JS
var arr = [
{'name': 'Henrique', 'idade': 20},
{'name': 'Thales', 'idade': 20},
{'name': 'Fulano', 'idade': 20}
];
let src = 'Fu';
let findName = arr.filter(value => {
return value.name.search(src) > -1;
import re
fileName = 'modelo_arquivo.txt'
try:
with open(fileName, 'r') as arquivoProcessado:
if(fileName.endswith('.txt')):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Static Template</title>
</head>
<body>
<input type="text" id="pedido" name="pedidos" placeholder="Pedidos" />
@henriquensco
henriquensco / etapa01.alg
Last active September 25, 2021 23:43
Etapa01
Algoritmo "etapa01"
// Disciplina : [Linguagem e Lógica de Programação]
// Professor : Antonio Carlos Nicolodi
// Descrição : Aqui você descreve o que o programa faz! (função)
// Autor(a) : Nome do(a) aluno(a)
// Data atual : 25/09/2021
Var
// Seção de Declarações das variáveis
opcaoPrograma, idade: inteiro
{
"id": 1,
"slug": "smartphone-samsung-galaxy-a8-plus",
"title": "Smartphone Samsung Galaxy A8 Plus",
"price": 1600,
"image": "https://encrypted-tbn3.gstatic.com/shopping?q=tbn:ANd9GcRW5DWMei2XN56jO6Kg4uPtXVq1-BerBxeAcH5FJaM7OgjUkPDWMw&usqp=CAc"
}
$(document).ready(function(){
var options = {
onKeyPress: function (cpf, ev, el, op) {
var masks = ['000.000.000-000', '00.000.000/0000-00'],
mask = (cpf.length > 14) ? masks[1] : masks[0];
el.mask(mask, op);
}
}
from django.db import models
class Profissional(models.Model):
UF_CHOICES = [
('AC', 'Acre'),
('AL', 'Alagoas'),
('AP', 'Amapá'),
('BA', 'Bahia'),
('CE', 'Ceará'),