Skip to content

Instantly share code, notes, and snippets.

@EricaJoy
EricaJoy / diversityinclusionpostmortem.md
Last active June 25, 2018 15:37
Diversity and Inclusion Postmortem
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

Keybase proof

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:

# 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')
# 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"
@EricaJoy
EricaJoy / gist:8292555
Created January 7, 2014 00:23
Turn a list into a comma separated string with an and for the last item. Oxford comma represent.
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