Skip to content

Instantly share code, notes, and snippets.

View jumbosushi's full-sized avatar

Atsushi Yamamoto jumbosushi

View GitHub Profile
@jumbosushi
jumbosushi / get_322_files.rb
Last active April 10, 2018 01:33
Download all 2018S CPSC322 files
require "open-uri"
# Last lec is 23, first is 01
# Ex Assignment link: https://www.cs.ubc.ca/~poole/cs322/2018/as1/as1.pdf
# EX Lec link: https://www.cs.ubc.ca/~poole/cs322/2018/slides/lect23s.pdf
def get_as_link(num)
return "https://www.cs.ubc.ca/~poole/cs322/2018/as#{num}/as#{num}.pdf"
end
def get_as_sol_link(num)

Keybase proof

I hereby claim:

  • I am jumbosushi on github.
  • I am jumbosushi (https://keybase.io/jumbosushi) on keybase.
  • I have a public key whose fingerprint is 8AE0 7956 6449 9F08 CB99 4B3F 3AE6 3A6A 5E2A 2F09

To claim this, I am signing this object:

@jumbosushi
jumbosushi / get-cfg
Last active October 30, 2017 22:18
Pull dotfiles
git clone --bare https://github.com/jumbosushi/dotfiles.git $HOME/.cfg
function config {
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@
}
mkdir -p .config-backup
config checkout
if [ $? = 0 ]; then
echo "Checked out config.";
else
echo "Backing up pre-existing dot files.";