Mascot* | Win % |
---|---|
horse | 63.64% |
mythical being | 71.43% |
industry | 72.55% |
other animal | 72.73% |
overall | 76.56% |
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
The snow is falling in three directions at once against the sienna brick of the houses across | |
but the storm is mild, the light even, the erratic wind not harsh, and, tolling ten o'clock, | |
the usually undistinguished bells of the Sixth Street cathedral assume an authoritative dignity, | |
remarking with ponderous self-consciousness the holy singularities of this now uncommon day. | |
How much the pleasant sense, in our sheltering rooms, of warmth, enclosure: an idle, languid taking in, | |
with almost Georgian ease, voluptuous, reposeful, including titillations of the sin of well-being, | |
the gentle adolescent tempest, which still can't make up its mind quite, can't dig in and bite, | |
everything for show, flailing with a furious but futile animation wisps of white across the white. | |
~ C. K. Williams, "One Morning in Brooklyn" |
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
fancy feast trout dinner - thom & casio | |
fancy feast ocean whitefish and tuna feast - classic - thom & casio | |
fancy feast salmon & ocean white fish - flaked - thom & casio | |
bff tuna & shrimp - casio | |
bff tuna & veggies - thom | |
fancy feast tuna & mackerel - flaked - thom |
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
from __future__ import with_statement | |
import random | |
def create_chain(file_paths): | |
word_counter = {} | |
previous_word = "" | |
for path in file_paths: | |
with open(path) as file: | |
for line in file: | |
words = line.split(" ") |
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
Deploying a Rails 3 App with EC2 + S3 + Ubuntu + Capistrano + Passenger | |
======================================================================= | |
EC2 Setup | |
--------- | |
1 Launch New ec2 instance - ami-1634de7f | |
2 Create elastic IP [ELASTIC_IP] and associate it with instance | |
3 go to domain registrar DNS settings, @ and www to ELASTIC_IP | |
4 set the `:host` in `config/deploy.rb` to ELASTIC_IP |
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
Summary | |
======= | |
locations.json with 22 points | |
------- | |
Total transferred: 439900 bytes | |
HTML transferred: 400200 bytes | |
Requests per second: 25.56 [#/sec] (mean) | |
Time per request: 39.124 [ms] (mean) |
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
Started GET "/" for 127.0.0.1 at 2011-12-15 13:42:31 -0500 | |
(0.2ms) SHOW search_path | |
Processing by FeaturePointsController#index as HTML | |
Completed 200 OK in 96ms (Views: 95.9ms | ActiveRecord: 0.0ms) | |
/Users/julia/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.3/lib/action_view/renderer/streaming_template_renderer.rb:88: [BUG] Segmentation fault | |
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0] | |
-- control frame ---------- | |
c:0024 p:---- s:0118 b:0118 l:000117 d:000117 CFUNC :resume | |
c:0023 p:0066 s:0115 b:0115 l:000640 d:001d88 BLOCK /Users/julia/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.3/lib/action_view/renderer/streaming_template_renderer.rb:88 |
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 | |
# | |
# This hook can be found in https://github.com/juliamae/githooks | |
commit_msg_file = ARGV[0] | |
branch_name = `git branch | grep '*'`.gsub(/[* |\n]/,"") | |
if message = open(commit_msg_file).read | |
open(commit_msg_file, 'w') do |f| | |
f.puts message.gsub("Merge", ":part_alternation_mark:erge") |
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
require 'csv' | |
require 'pp' | |
csv = <<-CSV | |
Cardinals,2,1,1,bird | |
Falcons,4,4,0,bird | |
Ravens,6,5,1,bird | |
Bills,26,23,3,human | |
Panthers,4,2,2,cat | |
Bears,4,4,0,"other animal" |
Remove duplicate Resque jobs that have already been queued for processing.
To run this against a Rails installtion in production
use the following command: bundle exec rails runner -e production /path/to/script/remove_duplicates.rb
. See rails runner
for more information.