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-on-branch () { | |
| git stash | |
| ORIGINAL_BRANCH=`git branch | grep \* | sed 's/\*[[:space:]]//'` | |
| git checkout $1 | |
| $2 | |
| git checkout $ORIGINAL_BRANCH | |
| git stash pop | |
| } |
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
| add(0, Y, Y). | |
| add(succ(X), Y, succ(Z)) :- add(X,Y,Z). | |
| mult(0,_,0). | |
| mult(succ(0), Z, Z). | |
| mult(succ(X),Y,Z) :- add(ZZ, Y, Z), mult(X, Y, ZZ). | |
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
| essing a template (An error occurred while processing a template (An error occurred while processing | |
| a template (An error occurred while processing a template (Maximum call stack size exceeded).).).). | |
| ).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).). | |
| ).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).).). | |
| Warning: An error occurred while processing a template (An error occurred while processing a templat | |
| e (An error occurred while processing a template (An error occurred while processing a template (An | |
| error occurred while processing a template (An error occurred while processing a template (An error | |
| occurred while processing a template (An error occurred while processing a template (An error occurr | |
| ed while processing a template (An error occurred while processing a template (An error occurred whi | |
| le processing a template (An error occurred while processing a template (An error occurred while pro |
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
| #!/bin/bash | |
| # Script for placing sudoers.d files with syntax-checking | |
| # Making a temporary file to contain the sudoers-changes to be pre-checked | |
| TMP=$(mktemp -t vagrant_sudoers) | |
| cat /etc/sudoers > $TMP | |
| cat >> $TMP <<EOF | |
| # Allow passwordless startup of Vagrant when using NFS. | |
| Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/su root -c echo '*' >> /etc/exports |
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
| "requirejs": "~2.1.8", | |
| "jquery": "~1.10.2", | |
| "backbone": "~1.1.0", | |
| "underscore": "~1.5.2", | |
| "marionette": "~1.4.0", | |
| "handlebars.js": "~1.0.0", | |
| "bugsnag": "~1.0.10", | |
| "mediaelement": "~2.13.1", | |
| "fastclick": "~0.6.10", | |
| "cookie.js": "git://github.com/thinkthroughmath/cookie.js", |
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
| * foo | |
| ** bar | |
| *** baz | |
| #begin_src org | |
| * a menu | |
| * something else | |
| ** whoa! | |
| #end_src |
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 texas? | |
| id == 1025 #is there a better way? | |
| end |
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
| #!/bin/bash | |
| # https://gist.github.com/robwierzbowski/5430952/ | |
| # Create and push to a new github repo from the command line. | |
| # Grabs sensible defaults from the containing folder and `.gitconfig`. | |
| # Refinements welcome. | |
| # Gather constant vars | |
| CURRENTDIR=${PWD##*/} | |
| GITHUBUSER=$(git config github.user) |
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
| beforeEach -> | |
| @addMatchers( | |
| toBeInstanceOf: (type)-> | |
| @message = -> | |
| "Expected #{@actual} to be an instance of #{type.name}" | |
| @actual instanceof type | |
| ) |
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
| describe "parentheses", -> | |
| it "supports parenthetical expressions", -> | |
| @handle.press_buttons("1 0 * ( 2 + 4 ) =") | |
| expect(@handle.output_content()).toEqual("60") | |
| it "supports implicit multiplication", -> | |
| @handle.press_buttons("1 0 ( 2 ) =") | |
| expect(@handle.output_content()).toEqual("20") | |
| it "supports implicit multiplication reversed", -> |