Skip to content

Instantly share code, notes, and snippets.

View neight-allen's full-sized avatar

Nate Allen neight-allen

View GitHub Profile
@neight-allen
neight-allen / movies.txt
Created February 5, 2016 17:32
List of movies with a score from 0-100
71, Hannibal Buress: Animal Furnace
80, Hannibal Buress: Comedy Camisado
17, Meet My Valentine
55, Experimenter
75, French Dirty
11, Love
7, I Love You Phillip Morris
9, A Ballerina's Tale
67, Hellions
65, The Land Before Time XIV: Journey of the Brave
javascript: (function () {var jsCode = document.createElement('script'); jsCode.setAttribute('src', 'https://localhost/~nateallen/ytwall/ytwall.js'); document.body.appendChild(jsCode); }());
@neight-allen
neight-allen / git nexttag
Last active August 29, 2015 14:07
I use this to tag commits when I'm ready to deploy to production. I made this so I don't have to remember what the last version was, and so I don't have to type the command either. To use as a git command (git nexttag) save it as git-nexttag somewhere on the path, like /usr/local/bin.
#!/bin/bash
lasttag=$(git describe --abbrev=0 --tags)
tagparts=(${lasttag//./ })
if [ ! -z $1 ] && [ $1 == "--hotfix" ]
then
declare -i hotfix
hotfix=1
var situation = 'pigs';
var conditionEnd = ' like it\'s hot.';
switch (situation) {
case 'pigs':
console.log('Park it' + conditionEnd);
break;
case 'pimps':
console.log('Drop it' + conditionEnd);
break;