This file contains hidden or 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
wget https://rubygems.org/downloads/bundler-1.8.5.gem | |
echo 'source "https://rubygems.org" | |
gem "rack" | |
gem "rdiscount" | |
gem "sinatra" | |
gem "unicorn"' > $WORKSPACE/Gemfile | |
export GEM_HOME=$WORKSPACE/vendor/cache | |
I hereby claim:
- I am EricaJoy on github.
- I am ericajoy (https://keybase.io/ericajoy) on keybase.
- I have a public key whose fingerprint is 47CF 5E0B 8025 AB6D 5DB9 B75A A620 B843 40E9 DAA9
To claim this, I am signing this object:
This file contains hidden or 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
# Solution to last question on http://sqlzoo.net/wiki/SELECT_from_Nobel_Tutorial | |
SELECT DISTINCT yr | |
FROM nobel | |
WHERE subject = 'Physics' | |
AND | |
yr NOT IN | |
(SELECT yr | |
FROM nobel | |
WHERE subject='Chemistry') |
This file contains hidden or 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
# git lg | |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
# git ll | |
git config --global alias.ll "log --pretty=format:'%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]' --decorate --numstat" |
This file contains hidden or 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
def stringmaker(startlist): | |
result = startlist[0] | |
for i in range(1,len(startlist)-1): | |
result = ', '.join([result,startlist[i]]) | |
result = ', and '.join([result,startlist[len(startlist)-1]]) | |
return result |