Skip to content

Instantly share code, notes, and snippets.

View paulopatto's full-sized avatar
🎯
Focusing

Paulo Patto paulopatto

🎯
Focusing
View GitHub Profile
@paulopatto
paulopatto / .pryrc.rb
Last active August 29, 2015 13:57 — forked from dlisboa/gist:9416144
Pryrc para usar o vim
require 'irb/completion'
def vi
require 'tempfile' unless defined? Tempfile
@f ||= Tempfile.new('irb-interactive')
system('vim', @f.path)
Object.class_eval File.read(@f.path) if $?.success?
end
at_exit do
puts @f.path

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

$('.cep').blur(function() {
var cep = $(this).attr('value').replace(/-/, '');
$.ajax({
url : 'http://cep.correiocontrol.com.br/' + cep + '.json',
dataType: 'json',
success: function(data) {
console.log(data);
$('#address').attr('value', data.logradouro);
$('#neighborhood').attr('value', data.bairro);
$('#city').attr('value', data.localidade);
1xx Informational
100 Continue :continue
101 Switching Protocols :switching_protocols
102 Processing :processing
2xx Success
200 OK :ok

Olá, presidenta Rousseff... eu lhe avisei

Carta impressa: escrita por Maddog

Jon "maddog" Hall

Querida Presidenta Rousseff,

Eu entendo que a senhora está irritada com meu país, os Estados Unidos da América, porque uma de

#############################################################################
# Documentation #
#############################################################################
# Author: Todd Whiteman
# Date: 16th March, 2009
# Verion: 2.0.0
# License: Public Domain - free to do as you wish
# Homepage: http://twhiteman.netfirms.com/des.html
#