git clone -b <branchName> <urlRepo> #faz o clone de um branch especifico.
git branch -D <branchName> #deletar branch local
git push origin --delete <branchName> #atualiza repo com a remoção da branch
git branch -m <oldName> <newName> #renomeia uma branch
git push --set-upstream origin <branchName> #faz push da branch local para o repo
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
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/tcelestino/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="honukai" | |
# Uncomment the following line to use case-sensitive completion. |
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
/** | |
* truncate title | |
* @param {String} text suffix | |
* @param {Number} size text | |
* @return {String} text truncate | |
*/ | |
var truncateText = function(str, size, suffix) { | |
var newTitle; |
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
function valida(selector, show_errors) { | |
var show_errors = (show_errors!=undefined)?show_errors:true; | |
var validaForm = true; | |
/*var $input = $("input[type=email]").val(); | |
var _reg = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i; | |
if(!_reg.test($input)) { | |
alert("digite um email válido"); | |
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
(function( jQuery ) { | |
var matched, | |
userAgent = navigator.userAgent || ""; | |
// Use of jQuery.browser is frowned upon. | |
// More details: http://api.jquery.com/jQuery.browser | |
// jQuery.uaMatch maintained for back-compat | |
jQuery.uaMatch = function( ua ) { | |
ua = ua.toLowerCase(); |
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
{ | |
"estados": [ | |
{ | |
"sigla": "AC", | |
"nome": "Acre", | |
"cidades": [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", |
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
l:^g – Para encontrar conversas que foram interrompidas. | |
l:^p – Mensagens marcadas como phishing. | |
l:^op – As marcadas como phishing de forma automática pelo Gmail | |
l:^os – As marcadas de forma automática como spam | |
l:^vm – As mensagens de voz de Google Voice voicemail | |
l:^io_im – As mensagens importantes | |
l:^unsub – As que incluem opção para cancelar assinatura | |
l:^cff – Os e-mails de nossos contatos do Google+ | |
l:^p_esnotif – As notificações de Google+ |
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 | |
/** | |
* Plugin Name: WP-EMail | |
* Plugin URI: http://lesterchan.net/portfolio/programming/php/ | |
* Description: Allows people to recommand/send your WordPress blog's post/page to a friend. | |
* Version: 2.52 | |
* Author: Lester 'GaMerZ' Chan | |
* Author URI: http://lesterchan.net | |
*/ | |
/* |
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 | |
ob_start(); | |
if(!function_exists("do_action")) : | |
header('content-type: text/xml'); | |
include_once('../../../../wp-config.php'); | |
endif; | |
$xml = array(); | |
$xml[] = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>"; | |
$xml[] = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"; | |
$xml[] = "<lista>"; |
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
// console | |
Handlebars.registerHelper("debug", function(optionalValue) { | |
console.log("Current Context"); | |
console.log("===================="); | |
console.log(this); | |
if (optionalValue) { | |
console.log("Value"); | |
console.log("===================="); | |
console.log(optionalValue); |