http://open.spotify.com/user/ioumu/playlist/4A4BC9Y2MC8J0xeVcZdowh
- Say Hi by The Stars Just Blink for Us
- Extreme Music Library by Offer Refusal
- Spoon by Trouble Comes Running
- The Moog by Survive
#!/usr/bin/env ruby | |
# A simply utility to show character counts for each line of input and | |
# highlight lines longer than 80 characters. | |
# | |
# Written as an example for http://jstorimer.com/2011/12/12/writing-ruby-scripts-that-respect-pipelines.html | |
# | |
# Examples: | |
# | |
# $ hilong Gemfile |
Status Code Status Message Symbol | |
1xx Informational | |
100 Continue :continue | |
101 Switching Protocols :switching_protocols | |
102 Processing :processing | |
2xx Success | |
200 OK :ok | |
201 Created :created | |
202 Accepted :accepted |
after "deploy:update", "deploy:cleanup" | |
after "deploy:update", "foreman:export" | |
after "deploy:symlink", "update_haproxy_config_symlink" | |
namespace :deploy do | |
task :stop do | |
run "sudo stop goliath_app" | |
end | |
task :start do | |
run "sudo start goliath_app" |
RSpec.configure do |config| | |
config.use_transactional_fixtures = false | |
config.before(:suite) do | |
DatabaseCleaner.clean_with :truncation | |
end | |
config.before(:each) do | |
if example.metadata[:js] | |
DatabaseCleaner.strategy = :truncation |
http://open.spotify.com/user/ioumu/playlist/4A4BC9Y2MC8J0xeVcZdowh
is_weekday = lambda {|day_of_week, time| time.wday == day_of_week}.curry | |
sunday = is_weekday[0] | |
monday = is_weekday[1] | |
tuesday = is_weekday[2] | |
wednesday = is_weekday[3] | |
thursday = is_weekday[4] | |
friday = is_weekday[5] | |
saturday = is_weekday[6] |
#!/bin/bash | |
mkdir my_project | |
cd my_project | |
echo " . . . Downloading file stanford-ner-2014-08-27.zip" | |
# NOTE: need to update link for further versions | |
wget http://nlp.stanford.edu/software/stanford-ner-2014-08-27.zip | |
echo " . . . Unpacking stanford-ner-2014-08-27.zip" |
class ApplicationRecord < ActiveRecord::Base | |
attr_writer :created_moments_ago | |
def created_moments_ago? | |
@created_moments_ago | |
end | |
def self.create_or_take! | |
where(block_given? && yield).crumby_create! | |
rescue ActiveRecord::RecordNotUnique |