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
set number | |
syntax on | |
set mouse=a | |
set ai | |
set ignorecase | |
set nowrap | |
let g:netrw_altv = 1 | |
map <C-M> <esc>:Vex<cr> | |
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags | |
autocmd FileType css set omnifunc=csscomplete#CompleteCSS |
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
export PS1="[\@]:[\u@\W]" | |
export CLICOLOR=1 | |
export LSCOLORS="cxfxcxdxbxegedabagacad" | |
alias q='exit' | |
alias subl='open -a "Sublime Text 2"' | |
alias saf='open -a "Safari"' | |
alias psd='open -b "com.adobe.Photoshop"' | |
alias mail='open -a "Gmail"' | |
alias text='open -a "TextEdit"' |
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(){ // atalho para jquery | |
function tabs(origin,itemClass1,destiny,itemClass2){ | |
$(origin).children().click(function(){ | |
$(this).siblings().removeClass(itemClass1); | |
$(this).addClass(itemClass1); | |
var n = $(this).index(); | |
var e = $(this).parent().siblings(destiny).children(); | |
e.removeClass(itemClass2); |
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
#add script to .oh-my-zsh/lib/functions.zsh | |
function rm () { | |
local path | |
for path in "$@"; do | |
# ignore any arguments | |
if [[ "$path" = -* ]]; then : | |
else | |
local dst=${path##*/} | |
# append the time if necessary |
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
#go to folder: | |
/Applications/Adobe Photoshop CS6/Locales/pt_BR/Support Files/tw10428.dat | |
#rename the file tw10428.dat for tw10428.bak |
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
var retina = function(){ | |
if (window.devicePixelRatio === 2) { | |
var images = $("img.hires"); | |
// loop through the images and make them hi-res | |
for(var i = 0; i < images.length; i++) { | |
// create new image name | |
var imageType = images[i].src.substr(-4); |
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
// Funcao para alterar o src das imagens caso o usuario | |
// esteja utilizando um dispositivo com retina display | |
var retina = function(imgFolder, retinaFolder){ | |
if (window.devicePixelRatio === 2) { | |
var $retinaImages = $("img.hires"); | |
for(var i = 0; i < $retinaImages.length; i++){ |
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=$HOME/.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="robbyrussell" | |
ZSH_THEME="af-magic" |
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
# Push and pop directories on directory stack | |
alias pu='pushd' | |
alias po='popd' | |
alias q='exit' | |
alias subl='open -a "Atom"' | |
alias saf='open -a "Safari"' | |
alias psd='open -b "com.adobe.Photoshop"' | |
alias mail='open -a "Gmail"' | |
alias text='open -a "TextEdit"' |
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
CC number - Iphone CAM | |
Cartão -> cardNumber | |
Nome -> nameOnCard | |
Mes -> ccMonth | |
Ano -> ccYear | |
<form> | |
<label for="cardNumber">Cartão</label> | |
<input type="text" pattern="\d*" id="cardNumber" /> |