Skip to content

Instantly share code, notes, and snippets.

View cupertinobr's full-sized avatar

Rodolfo Cupertino cupertinobr

View GitHub Profile
@fayqLs
fayqLs / .php
Last active May 29, 2024 12:09
INTEGRAÇÃO LOGIN SOCIAL DO GOOGLE
<?php
# AGRADECIMENTO: WELLIGTON PIVATTO
# INSTALE O PACOTE COMPOSER NO PROJETO: google/apiclient
# CONTEÚDO ARQUIVO google.ini (app/config/google.ini)
/*
[google_oauth2]
client_id = "303046463171-cisqtpsaqbvd6xpg547rfbhi7ea1un69.apps.googleusercontent.com"
client_secret = "YHMKPX-wqMQF1Dc06GI5Prd2IYVivJ3df6V"
@renatofrota
renatofrota / init.php
Last active April 30, 2024 20:02
Adianti Debug - Funções d, dd, p, pp
<?php
// adicione estas funções no arquivo init.php
// uso: d($argumento1, $argumento2, ...);
// https://github.com/renatofrota
// dump
function d(...$args)
{
$bt = debug_backtrace();
@fayqLs
fayqLs / .js
Created November 21, 2023 16:16
CUSTOMIZAR A MENSAGEM CARREGANDO
# CRIE UM ARQUIVO JS NO PROJETO
function __adianti_block_ui(mensagem)
{
if (typeof $.blockUI == 'function')
{
if (typeof Adianti.blockUIConter == 'undefined')
{
Adianti.blockUIConter = 0;
}
@fayqLs
fayqLs / .php
Created October 24, 2023 04:48
DEFINIR ORDENAÇÃO PELO CAMPO DE OUTRA TABELA NO DATAGRID
<?php
public function onReload($param = NULL)
{
if (empty($param['order']))
{
$param['order'] = 'cidade->nome';
$criteria->setProperties($param);
}
@dragonfire1119
dragonfire1119 / uptime-kuma-docker-compose.yml
Created August 10, 2023 12:48
Docker Compose Uptime Kuma
version: '3'
services:
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: uptime-kuma
restart: always
ports:
- "7200:3001"
volumes:
- /data/uptime-kuma/data:/app/data
@fayqLs
fayqLs / .php
Last active April 19, 2024 03:18
PEGAR DADOS SEPARADOS DE UM TEXTO ( explode )
<?php
$nome_completo = 'FABRICIO ALMEIDA';
$array = explode(' ', $nome);
# RETORNO DO explode
Array
(
[0] => FABRICIO
@fayqLs
fayqLs / .php
Last active April 20, 2024 00:27
BUSCAR O ENDEREÇO PELO CEP
<?php
ini_set('display_errors',0);
class PessoaForm extends TPage
{
public static function onCEP($param = null)
{
try
@heypoom
heypoom / download-from-undraw.py
Created April 2, 2020 12:37
Download every svg file from undraw.
#!/usr/bin/env python3
import os
import json
import requests
from multiprocessing.pool import ThreadPool
def build_index():
page = 1
urls = []
@camilamoreiradev
camilamoreiradev / Popover e Badges - Bootstrap
Created March 25, 2018 04:53
Aprenda a adicionar popovers e badges nas consultas do Scriptcase.
Seguem os eventos e seus respectivos códigos:
-> onScriptInit:
--------------------------------------------------------------------
sc_include_lib("Jquery");
?>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<style>
@Al-Muhandis
Al-Muhandis / freepascal-telegram-links.md
Created February 5, 2018 14:24
Useful links about freepascal in telegram and telegram in freepascal (and Lazarus IDE)