Skip to content

Instantly share code, notes, and snippets.

View aqualungdesign's full-sized avatar

Filipe Vieira aqualungdesign

  • Hiperativa
  • Rio de Janeiro
View GitHub Profile
@aqualungdesign
aqualungdesign / .vimrc
Created June 8, 2012 17:59
Meu arquivo de configuração do vim
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
@aqualungdesign
aqualungdesign / .bash_profile
Last active October 5, 2015 23:47
Meu arquivo .bash_profile
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"'
$(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);
@aqualungdesign
aqualungdesign / gist:4612606
Created January 23, 2013 20:19
iterm / oh-my-zsh -> rm move to .trash
#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
@aqualungdesign
aqualungdesign / gist:4612802
Created January 23, 2013 20:35
Changing the photoshop cs6 language. MAC OS
#go to folder:
/Applications/Adobe Photoshop CS6/Locales/pt_BR/Support Files/tw10428.dat
#rename the file tw10428.dat for tw10428.bak
@aqualungdesign
aqualungdesign / js-retina.js
Created February 6, 2013 13:39
js for retina display
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);
@aqualungdesign
aqualungdesign / retina-hires.js
Created February 15, 2013 17:14
função para alterar as imagens do html por retina display.
// 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++){
# 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"
# 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"'
@aqualungdesign
aqualungdesign / iphone-cc-cam
Created May 4, 2015 21:26
completar o cartão de crédito com a câmera do iphone
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" />