Skip to content

Instantly share code, notes, and snippets.

@MrBerg
MrBerg / git.txt
Last active November 4, 2015 11:20
Git usage
Terminology:
origin = Niksula gitlab server
remote = the versions of the branches at origin
Helpful commands:
git pull
-first uses "git fetch" to update pointers to the the heads of the branches at origin
-after that it uses "git merge" to try to put all the changes downloaded from the remote before any local changes
git status
-shows current branch, how far ahead it is from remote, files changed since last commit
@MrBerg
MrBerg / 99Bottles.ArnoldC
Created February 27, 2014 15:48
Implementation of 99 bottles in ArnoldC. The number of bottles and the rest of the line are printed on separate lines, due to there being no string concatenation or printing on the same line implemented in ArnoldC (yet).
IT'S SHOWTIME
HEY CHRISTMAS TREE bottlesOfBeer
YOU SET US UP 99
HEY CHRISTMAS TREE isLargerThan1
YOU SET US UP @NO PROBLEMO
STICK AROUND isLargerThan1
TALK TO THE HAND bottlesOfBeer
TALK TO THE HAND "bottles of beer on the wall,"
TALK TO THE HAND bottlesOfBeer
TALK TO THE HAND "bottles of beer. Take one down and pass it around, "
@MrBerg
MrBerg / EULER1.ArnoldC
Created February 26, 2014 23:19
Solving Euler problem #1 in ArnoldC.
IT'S SHOWTIME
HEY CHRISTMAS TREE sum
YOU SET US UP 0
HEY CHRISTMAS TREE isLessThan1000
YOU SET US UP @NO PROBLEMO
HEY CHRISTMAS TREE iterator
YOU SET US UP 1
HEY CHRISTMAS TREE output
YOU SET US UP 0
STICK AROUND isLessThan1000