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
#!/usr/bin/env ruby | |
file="~/Dropbox/Photos/gitshots/#{Time.now.to_i}.jpg" | |
puts "Taking capture into #{file}!" | |
system "imagesnap -q -w 3 #{file}" | |
exit 0 |
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
#!/bin/sh | |
#path to project on server | |
GIT_WORK_TREE=/var/www/path/to/project/ git checkout -f |
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
#!/bin/sh | |
#path to project on server | |
GIT_WORK_TREE=/var/www/path/to/project/ git checkout -f | |
# other instructions on deploy | |
cd /var/www/path/to/project | |
# Compile Stylus | |
stylus --include /usr/local/lib/node_modules/nib/lib app/static/style/main.styl | |
stylus app/static/style/tab.styl |
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
#!/bin/sh | |
export GIT_DIR=$(pwd) | |
cd /var/www/path/to/server/ | |
git checkout -f master | |
git checkout -f developer |
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
vendor(prop, args) | |
-webkit-{prop} args | |
-moz-{prop} args | |
-ms-{prop} args | |
-o-{prop} args | |
{prop} args | |
border-radius() | |
vendor('border-radius', arguments) |
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
#!/usr/bin/env python | |
# coding=utf-8 | |
# -*- coding: utf-8 -*- | |
import os | |
import random | |
marvin = [ | |
"DON'T PANIC!", | |
"Ah, a vida. Pode-se odiá-la ou ignorá-la, mas é impossível gostar dela.", |
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
#!/bin/sh | |
terminal-notifier -message "Pra abrir o Transmit para fazer é só clicar aqui!" -title "Vai fazer deploy?" -group 1911 -execute "open /Applications/Transmit.app/" |
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
#!/bin/sh | |
afplay -v 0.1 /System/Library/Sounds/Pop.aiff > /dev/null 2>&1 |
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
#!/bin/sh | |
afplay -v 0.1 /System/Library/Sounds/Tink.aiff > /dev/null 2>&1 |
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
//validação do formulario | |
jQuery.validator.addMethod("cpf", function(value, element) { | |
log("jquery.validator CPF", value); | |
var cpf = value.replace(/\./g,'').replace(/\-/,''); | |
var numeros, digitos, soma, i, resultado, digitos_iguais; | |
digitos_iguais = 1; | |
if (cpf.length < 11) |