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
rvm use 1.9.3@my_project --create --rvmrc |
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_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 |
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
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 |
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
# 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 |
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
<?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> |
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
(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 |
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
*.gem | |
*.rbc | |
.bundle | |
.config | |
coverage | |
InstalledFiles | |
lib/bundler/man | |
pkg | |
rdoc | |
spec/reports |
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
o.errors.full_messages.join(', ') |
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
http://mirror.pnl.gov/ubuntu//pool/universe/g/gcc-3.3/libstdc++5_3.3.6-20~lucid1_amd64.deb | |
deb http://mirror.pnl.gov/ubuntu/ lucid-backports main universe |
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
:%s/<Ctrl-V><Ctrl-M>//g |
OlderNewer