This file contains 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
%%%%%%%%%%%%%%%%%%%%% Branchs %%%%%%%%%%%%%%%%%%%%%% | |
# Criando um branch | |
git branch nome-branch | |
# Visualizando branchs criados | |
git branch | |
# Criar um branch e já acessar o mesmo | |
git checkout -b nome-branch |
This file contains 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
# Após instalação | |
> Ativar o sync do mozzila | |
> Desativar o protetor de tela | |
> Gerenciador de Energia, desativar | |
> Gerenciador de Atualização, tirar do inicio da sessão | |
# Alterando senha root | |
sudo passwd root | |
# Atualizando |
This file contains 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
// Template de Método | |
(function($){ | |
$.myPlugin = function(settings){ | |
var config = { | |
'foo': 'bar' | |
}; | |
if (settings){$.extend(config, settings);} | |
// code here |
This file contains 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 | |
/* | |
Função bem util desenvolvida por mim (https://plus.google.com/u/0/+JhordanLima/post) para quem está fazendo um sistema de comentários ou algo do tipo para seu site em php. | |
Ela trabalha com tempo, para deixar mais dinâmico, dizendo a quanto tempo foi enviado a mensagem. Porem para funcionar, a data precisa está de acordo com o formato (Ano/Mês/Dia Hora:Minuto:Segundo), formato padrão do datatime do banco de dados MySql. | |
Obrigado a Thiago Belem pelo tutorial sobre trabalhar datas. | |
This file contains 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 | |
mysql_connect($servidor, $usuario, $senha) or die(mysql_error()); | |
mysql_select_db($banco) or die(mysql_error()); | |
mysql_query("SET NAMES 'utf8'"); | |
mysql_query('SET character_set_connection=utf8'); | |
mysql_query('SET character_set_client=utf8'); | |
mysql_query('SET character_set_results=utf8'); |
NewerOlder