Instantly share code, notes, and snippets.

View aoc_2015_day2.js
function parseDimension(dimension) {
var packageDimensions = dimension.split("x");
return packageDimensions;
}
function numericSort(a, b) {
if (a < b) return -1;
if (a > b) return 1;
return 0;
View git-change-commit-messages.md

How to change your commit messages in Git?

At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.

Not pushed + most recent commit:

git commit --amend

This will open your $EDITOR and let you change the message. Continue with your usual git push origin master.

View wezm.zsh-theme
PROMPT='
$(git_prompt_info)%(?,,%{${fg_bold[white]}%}[%?]%{$reset_color%} )%{$fg[yellow]%}%# %{$reset_color%} '
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[blue]%}("
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%})%{$fg[red]%}⚡%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
View Basic AMD module using the CommonJS format
define(function (require) {
// import dependencies
var defineComponent = require('./lib/component');
// export component constructor
return defineComponent(helloWorld);
// component definition
function helloWorld () {};
View TiddlyWikiHelperMacros
config.macros.hero= {};
config.macros.hero.handler = function (place,macroName,params,wikifier,paramString,tiddler) {
var heroText= params.length > 0 ? params[0] : "BLANK";
wikify("__@@''"+heroText+"''@@__", place);
}
config.macros.insight= {};
config.macros.insight.handler = function (place,macroName,params,wikifier,paramString,tiddler) {
View top_shadow
body:before {
content: "";
position: fixed;
top: -10px;
left: 0;
width: 100%;
height: 10px;
-webkit-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
-moz-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
View gist:2410176
font-family "mreavesmod","Helvetica Neue",Arial,Helvetica,sans-serif
font-size 20px
font-weight 400
font-style normal
font-size-adjust none
color #333333
text-transform none
text-decoration none
letter-spacing normal
word-spacing 0
View gist:2384762
http://css-tricks.com/adding-stroke-to-web-text/
#top-logo
{
font-family: ChunkFiveRegular;
font-size: 0.7em;
}
#top-logo .two {
View CSS-heading-soundmanager.css
font-family "ChunkFive","ChunkFiveRegular","helvetica neue",helvetica,arial,verdana,tahoma,"sans serif"
font-size 42px
font-weight 500
font-style normal
font-size-adjust none
color #333333
text-transform none
text-decoration none
letter-spacing 0
word-spacing 0