I hereby claim:
- I am jboursiquot on github.
- I am jboursiquot (https://keybase.io/jboursiquot) on keybase.
- I have a public key whose fingerprint is ED6D 593E 5733 2FC8 7CD8 9B22 036A F617 84D5 062D
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Counting incrementally to 100, print "fizz" any number divisible by 3 and "buzz" any number divisible by 5. Should the number be divisible by 3 and 5, print "fizzbuzz". |
Given a CSV document with three columns, firstname
, lastname
, and email
, please read that file into a data structure that I can use to:
firstname
, lastname
and email
email
# How would you implement 'each' on Ruby's `Array` class (without using another enumerator like map). |
rvm use 1.9.3@my_project --create --rvmrc |
require_relative '../spec_helper' | |
describe "My API" do | |
it "should return a list of cities (e.g. New York, Berlin)" | |
it "should return a list of course categories" | |
it "should return a list of courses based on a given city" | |
it "should return a list of courses based on a category and city" | |
end |
gem install tiny_tds -- --with-freetds-include=/usr/local/include --with-freetds-lib=/usr/local/lib --with-iconv-include=/usr/local/Cellar/libiconv/1.14/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.14/lib |
# Given: | |
hash = {} | |
(('a'..'z').to_a+('a'..'z').to_a).shuffle.each do |e| | |
# represent the following two lines as a one-liner | |
hash[:"#{e}"] ||= [] | |
hash[:"#{e}"] << rand(10) | |
end | |
# one-liner for the two-liner above |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Blue Component</key> | |
<real>0.48771023750305176</real> | |
<key>Green Component</key> | |
<real>0.48781105875968933</real> |
(Source: http://blog.bogojoker.com/2008/07/command-line-svnignore-a-file/) | |
# --------------------------------------------------------------------- | |
# Ignore all the .txt files in the /trunk/Blah/ directory | |
# --------------------------------------------------------------------- | |
# Go to the directory | |
cd trunk/Blah/ # The directory with the files | |
# Start editing the properties for the current directory |