This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ababua | |
Abaca | |
Abacado | |
Abacai | |
Abacaiba | |
Abacalhoar | |
Abacamartado | |
Abacanar | |
Abacanto | |
Abacatada |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global user.name "Tarcisio Coutinho" | |
git config --global user.email "[email protected]" | |
git config --global color.ui true | |
git config --global alias.s status | |
git config --global alias.c checkout | |
git config --global alias.b branch | |
git config --global alias.lol log --oneline --graph --decorate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash --norc | |
# Realçando saída do comando 'echo': | |
Echo() { echo -e "\e[1m$*\e[m"; } | |
# Caso o usuário interrompa a execução do script: | |
#trap "break ; exit" 1 2 3 15 | |
# Utilizando o script: | |
Uso() { | |
Echo "Uso: ${0##*/} [-p path] [-n nome] -h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class DbPdoSingleton { | |
protected static $instance; | |
protected function __construct() { | |
} | |
public static function getInstance() { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class autoloader { | |
public static $loader; | |
public static function init() | |
{ | |
if (self::$loader == NULL) | |
self::$loader = new self(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$tenta=1; | |
while ( $tenta == 1 ) { | |
$query = mysql_query("START TRANSACTION"); | |
$comando = "INSERT INTO empresas VALUES ( | |
'$cdempresa', '$cdsetorativ', '$cdtipo', | |
'$txsenha', '$txnomefantasia', '$txrazaosocial', | |
'$txlogradouro', '$txbairro', '$txcidade', | |
'$nucep', '$txemailadd', '$nutelefone', | |
'$txhistorico', '$txurlsite', '$dtcadastro', '$aoativo' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.io.InputStream; | |
//import java.io.PrintWriter; | |
import java.util.Random; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
/** |
NewerOlder