GeoEntity.last
SELECT geo_entities.* FROM geo_entities ORDER BY geo_entities.id DESC LIMIT 1
returns:
County id: 4, eid: nil, pid: nil, ename: nil, etype: 2, created_at: "2011-11-21 06:26:37", updated_at: "2011-11-21 06:26:37"
| json = { | |
| :as_of => @search.until.in_time_zone.xmlschema | |
| } | |
| if @updates.max_distance | |
| json[:next_offset] = @search.next_offset | |
| json[:distance] = @updates.max_distance | |
| end | |
| json[:updates] = @updates.map do |el| |
| development: &dev | |
| host: | |
| - 127.0.0.1 | |
| 27017 | |
| - 0.0.0.0 | |
| 27017 | |
| database: queue |
| Pry.config.editor = "gvim --remote-silent" | |
| Pry.hooks.add_hook(:after_session, :say_bye) do | |
| puts "fuck off Gnida" | |
| end | |
| Pry.prompt = [Proc.new{ |obj, nest_level| "#{RUBY_VERSION}-#{RUBY_PATCHLEVEL} (#{obj}):#{nest_level} > " }, | |
| Proc.new{ |obj, nest_level| "#{RUBY_VERSION} (#{obj}):#{nest_level} * " } ] | |
| /usr/bin/firefox -new-tab $1 |
| def user_timeline(uid) | |
| - request(:get, "/statuses/user_timeline.json", {'user_id' => uid, 'count' => 100, 'trim_user' => true}) | |
| + request(:get, "/statuses/user_timeline.json", | |
| + user_id: uid, | |
| + count: 100, | |
| + trim_user: true, | |
| + include_rts: 1 | |
| + ) | |
| end |
GeoEntity.last
SELECT geo_entities.* FROM geo_entities ORDER BY geo_entities.id DESC LIMIT 1
returns:
County id: 4, eid: nil, pid: nil, ename: nil, etype: 2, created_at: "2011-11-21 06:26:37", updated_at: "2011-11-21 06:26:37"
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://npmjs.org/install.sh | sh |
| if %w(test development).include? Rails.env | |
| Qu.backend = Qu::Backend::RightNow.new | |
| else |
| #!/usr/bin/env ruby | |
| class A | |
| CONDITION = { | |
| nil => :a, | |
| false => :b, | |
| true => :c | |
| } | |
| def abc(val) |