Carta impressa: escrita por Maddog
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 | |
| # |
Carta impressa: escrita por Maddog
Querida Presidenta Rousseff,
Eu entendo que a senhora está irritada com meu país, os Estados Unidos da América, porque uma de
| 1xx Informational | |
| 100 Continue :continue | |
| 101 Switching Protocols :switching_protocols | |
| 102 Processing :processing | |
| 2xx Success | |
| 200 OK :ok |
| $('.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); |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| 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 |
| #!/usr/bin/env ruby | |
| require 'gosu' # gem install gosu --no-document | |
| include Gosu | |
| $dimension, $splits = 200, 20 | |
| $size = $dimension.to_f / $splits.to_f | |
| class Worm | |
| attr_writer :dir | |
| def initialize() reset end |
| # $Id: screen-keys.conf,v 1.5 2009/10/25 21:58:05 nicm Exp $ | |
| # | |
| # By Nicholas Marriott. Public domain. | |
| # | |
| # This configuration file binds many of the common GNU screen key bindings to | |
| # appropriate tmux key bindings. Note that for some key bindings there is no | |
| # tmux analogue and also that this set omits binding some commands available in | |
| # tmux but not in screen. | |
| # | |
| # Note this is only a selection of key bindings and they are in addition to the |
| #!/usr/bin/env ruby | |
| # http://ruby-doc.org/stdlib-2.0.0/libdoc/English/rdoc/English.html | |
| require 'English' | |
| require 'rubocop' | |
| ADDED_OR_MODIFIED = /^\s*(A|AM|M)\s*/ | |
| GIT_COMMAND = "git status --porcelain".freeze | |
| modified_files = `#{GIT_COMMAND}`.split(/\n/) |