Skip to content

Instantly share code, notes, and snippets.

View AlexMihov's full-sized avatar
🐯

Alex Mihov AlexMihov

🐯
View GitHub Profile
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
function pad (n, width, z) {
z = z || '0';
n = n + '';
while (n.length < width) { n = z + n; }
return n;
}
@AlexMihov
AlexMihov / 0_reuse_code.js
Created April 18, 2014 20:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console