Skip to content

Instantly share code, notes, and snippets.

View Wpkenpachi's full-sized avatar
🎯
Focusing

Wesley Paulo Wpkenpachi

🎯
Focusing
View GitHub Profile
Segue uma lista com várias Inteligências Artificiais.
> https://chat.openai.com/ - Chat do Elon Musk
> https://lnkd.in/dRvAyAAk - Comunidade OpenAI
> https://lnkd.in/dY8v33nG - TheGptTimes Escreva uma noticia com 3 tweets.
> https://lnkd.in/d6MM5DZf - Crie imagens baseadas em texto com essa IA.
> https://lnkd.in/dURDahxJ - Crie imagens baseadas em texto com essa IA.
> https://codewp.ai/ - Scripts para Wordpress
> https://www.sitekick.ai/ - Crie Landpages com IA dizendo como você quer via texto.
> https://humanpal.io/ - Crie Avatares com aparência humana única
@Wpkenpachi
Wpkenpachi / pydig_example.py
Created January 19, 2023 01:37
A sample of script to execute dig bash command in some domains inside a csv file
import dns.resolver as resolver
import pandas as pd
domains_csv = pd.read_csv('./domains.csv')
domains = domains_csv.values.tolist()
found = []
for domain in domains:
dname = domain[0]
try:
output = list(dns.resolver.resolve(dname, 'MX'))
type Eq<A, B> = <X>(a: A, eq: (x: A & B) => X) => X;
const refute = (x: never) => x;
const refl = <A, X>(a: A, eq: (x: A) => X) => eq(a);
const sickos = <A>(x: A, eq: Eq<A, number>) => eq(x, (x) => x);
const two = sickos(2, refl);
type Ty<A> =
| { tag: "number"; eq: Eq<A, number> }
| { tag: "string"; eq: Eq<A, string> };
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © angelportinari17
//@version=5
strategy("Probabilistic Strategy", overlay=true, max_bars_back=5000, max_labels_count=500, margin_long=0.01, margin_short=0.01, initial_capital = 1000)
import Wpkenpachi/WpProbabilisticLib/1 as WpProb
// INPUTS
int days_before = input.int(1, "Qtd. Dias atrás", minval = 1, maxval = 50, step = 1)
int qtd_candles_before = input.int(89, "Qtd. Candles para trás", minval = 5, maxval = 500, step = 1)
@Wpkenpachi
Wpkenpachi / php_print
Created January 9, 2020 13:47
Print Driver and Label Print PHP
https://github.com/mike42/escpos-php
https://github.com/RamyTalal/Label-Printer?
<?php
// Model
namespace Model;
abstract class Connection {
protected $con;
function __construct () {
$this->conn = "Database Conn"; // Aqui fazer a conexão com o banco
}
@Wpkenpachi
Wpkenpachi / vue-googlemaps
Created August 24, 2019 21:50
Exemplo de uso do vue-googlemaps
<template>
<div id="inicio">
<!-- LINHA 1 -->
<b-row>
<b-col col lg="12" class="demo">
<googlemaps-map ref="map" class="map" :center.sync="map.center" :zoom.sync="map.zoom">
<!-- User Position -->
<googlemaps-user-position @update:position="setUserPosition"/>
<!-- Estabelecimento Marker -->
[PHP][Você Sabia?]
Eae pipou?!
Todos os dias vemos postagens sobre o uso do mysql_connect(), parem de usar esse lixo, TUTORIAL DEFINITIVO DO USO DO PDO de forma simples :D.
|============================
| Instanciado um Objeto do PDO
| obs: importante vamos utilizar essa mesma instância
| para todas as querys
|============================
| // O pdo recebe em seu construtor 3 parametros
| // uma string que informa diver,host e dbname
<?php
/*
Injeção de dependência em namespaces Diferentes
*/
// Request Class
namespace Illuminate\Http;
class Request {
Avaliacao::select("
UNIX_TIMESTAMP( CONVERT_TZ( time, '+00:00', @@global.time_zone) ) as time,
idrest,
idcliente,
comentario,
alias,
entrega,
comida,
embalagem,
custobeneficio,