Mark Hamill - P.O. Box 287, Grand Blanc, MI 48480, USA- Harrison Ford - P.O. Box 49344, Los Angeles, CA 90049-0344, USA
- Dave Grohl -
- Josh Freese - Rebel Waltz, Inc., 31652 2nd Avenue, Laguna Beach, CA 92651, USA
- Tom Hanks - Playtone, P.O. Box 7340, Santa Monica, CA 90406-7340, USA
- Bill Murray - Ziffren, Brittenham, 1801 Century Park West, Los Angeles, CA 90067-6406, USA
- Dan Akroyd - Applied Action Research Corp., 859 Hollywood Way, Box 497, Burbank, CA 91505, USA
- John Cleese - Phil McIntyre Management Ltd., 3rd Floor, 85 Newman Street, London, W1T 3EU, UK
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
module MTA | |
LINES = { | |
n: ['ts', '34th', '28th-n', '23rd-n', 'us'], | |
l: ['8th', '6th', 'us', '3rd', '1st'], | |
s: ['gc', '33rd', '28th-s', '23rd-s', 'us'] | |
} | |
Stop = Struct.new(:line, :point) | |
class Route |
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
var ReverseSearch = { | |
onReady: function(){ | |
$("#rsearch input").on("keyup change", ReverseSearch.wait); | |
}, | |
wait: function(e){ | |
clearTimeout($.data(this, 'timer')); | |
if (e.keyCode == 13){ | |
ReverseSearch.rsearch(true); | |
} else { | |
$(this).data('timer', setTimeout(ReverseSearch.rsearch, 500)); |
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
# Now more objecty | |
class PotOfCoffee | |
attr_reader :scoops | |
def initialize(quantity: 12, strength: :normal) | |
@quantity = quantity | |
@strength = strength | |
end |
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
# https://rubymonk.com/learning/books/1-ruby-primer/problems/150-kaprekar-s-number | |
def kaprekar?(k) | |
k_st = k.to_s | |
kk = k**2 | |
kk_st = kk.to_s | |
offset_length = kk.to_s.length.odd? ? k_st.length - 1 : k_st.length | |
left = kk_st[0, offset_length] | |
right = kk_st[offset_length, k_st.length] | |
k == left.to_i + right.to_i | |
end |
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 'set' | |
class Subway | |
attr_reader :stops | |
def initialize(lines) | |
@stops = {} | |
lines.each_pair {|line, stops| | |
stops.each do |stop| |
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 'exifr' | |
files = Dir['*.jpg'] | |
puts "Renaming #{files.count} files..." | |
new_file_names = Hash.new { |h,k| h[k] = [] } | |
files.each do |file| | |
exif = EXIFR::JPEG.new(file) | |
dt = exif.date_time_original | |
new_file_name = "#{dt.strftime('%Y-%m-%d %H.%M.%S')}" |
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
/* <![CDATA[ */ | |
//============================================================ | |
// ZALGO text script by tchouky | |
//============================================================ | |
// data set of leet unicode chars | |
//--------------------------------------------------- | |
//those go UP | |
var zalgo_up = [ |
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
# in configure block | |
config.exceptions_app = self.routes |
- https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04
- https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-14-04
- https://www.digitalocean.com/community/tutorials/how-to-use-postgresql-with-your-ruby-on-rails-application-on-ubuntu-14-04
https://www.digitalocean.com/community/tutorials/deploying-a-rails-app-on-ubuntu-14-04-with-capistrano-nginx-and-pumaThis one is complicated and buggy- https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-git-hooks-on-ubuntu-14-04
Installing Rails may fail because of Nokogiri - http://www.nokogiri.org/tutorials/installing_nokogiri.html#ubuntu___debian Installing pg may fail - http://stackoverflow.com/questions/3116015/how-to-install-postgresqls-pg-gem-on-ubuntu
OlderNewer