Skip to content

Instantly share code, notes, and snippets.

View tbueno's full-sized avatar

Thiago Bueno tbueno

View GitHub Profile

Keybase proof

I hereby claim:

  • I am tbueno on github.
  • I am tbueno (https://keybase.io/tbueno) on keybase.
  • I have a public key ASCgaizT7ggpW8TCGC9HL7ezPa6WM8xLLh12FlFVghigAgo

To claim this, I am signing this object:

@tbueno
tbueno / Gemfile
Created April 7, 2016 20:53
unique id approach
source "https://rubygems.org"
ruby "2.3.0"
gem "sequel"
gem "pg"
gem "rubyzip"
group :development, :test do
gem "rake"
@tbueno
tbueno / porto-alegre-lotacoes.geojson
Created May 20, 2015 00:41
Lotações de Porto Alegre
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tbueno
tbueno / poa_stops.geojson
Created April 29, 2014 09:47
Public Transport stops from Porto Alegre, Brazil. Gathered from GTFS feed
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tbueno
tbueno / WTF Ruby?!?!?!?!
Last active December 16, 2015 11:49
A conversion from String to Float can be a surprise sometimes....
1.9.3-p286 :007 > '85.78'.to_f
=> 85.78
1.9.3-p286 :008 > '85.78'.to_f * 100
=> 8578.0
1.9.3-p286 :012 > '81.06'.to_f * 100
=> 8106.0
1.9.3-p286 :013 > '81.03'.to_f * 100
=> 8103.0
1.9.3-p286 :009 > '81.07'.to_f * 100
=> 8106.999999999999
@tbueno
tbueno / gist:264494
Created December 28, 2009 02:11 — forked from elvio/gist:263223
osascript -e 'say "Dum la dum fa la la dum he dum dum fa dum dum la fa hoo hoo hoo dum dum lah fa he he he dum" using "Cellos"'
require 'mechanize'
require 'hpricot'
class Orkut
def initialize(email, pass)
@agent = WWW::Mechanize.new
@email = email
@pass = pass
end