Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Ronaldo Oliveira rfdeoliveira

🎯
Focusing
Block or report user

Report or block rfdeoliveira

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 1.random_database_access_class.php
<?php
// Isso é o que tem hoje
class Random
{
// Este é o único atributo que essas classes random tem =(
private $db;
public function __construct(Db $db)
{
@rfdeoliveira
rfdeoliveira / Inutils.php
Last active Sep 12, 2016
Aí eu páro e penso: car****!!!
View Inutils.php
<?php
namespace sehLocoCachoeira;
class Inutils
{
public static function dateToTimestamp($date)
{
// Converte formato Date do PHP para Timestamp do SQL
$dateTimeDB = "";
View gist:748231601aef6b1dfa7e95822baf7416
<?php
function gen_slug($str){
# special accents
$a = array(
'À','Á','Â','Ã','Ä','Å','Æ','Ç','È','É','Ê','Ë','Ì','Í','Î','Ï','Ð','Ñ','Ò','Ó','Ô','Õ','Ö','Ø','Ù','Ú','Û','Ü','Ý','ß','à','á','â','ã','ä','å','æ','ç','è','é','ê','ë','ì','í','î','ï','ñ','ò','ó','ô','õ','ö','ø','ù','ú','û','ü','ý','ÿ','A','a','A','a','A','a','C','c','C','c','C','c','C','c','D','d','Ð','d','E','e','E','e','E','e','E','e','E','e','G','g','G','g','G','g','G','g','H','h','H','h','I','i','I','i','I','i','I','i','I','i','?','?','J','j','K','k','L','l','L','l','L','l','?','?','L','l','N','n','N','n','N','n','?','O','o','O','o','O','o','Œ','œ','R','r','R','r','R','r','S','s','S','s','S','s','Š','š','T','t','T','t','T','t','U','u','U','u','U','u','U','u','U','u','U','u','W','w','Y','y','Ÿ','Z','z','Z','z','Ž','ž','?','ƒ','O','o','U','u','A','a','I','i','O','o','U','u','U','u','U','u','U','u','U','u','?','?','?','?','?','?');
$b = array(
'A','A','A','A','A','A','AE','C','E','E','E','E','I','I','I','I','D','N','O','O','O','O','O
You can’t perform that action at this time.