Skip to content

Instantly share code, notes, and snippets.

Nils Deele

Block or report user

Report or block Deele

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
itod /
Last active Nov 19, 2019
Every "split" mechanical keyboard currently being sold that I know of
endel / number-pad-zero.js
Last active Nov 12, 2019
Simplest way for leading zero padding in JavaScript
View number-pad-zero.js
Number.prototype.pad = function(size) {
var s = String(this);
while (s.length < (size || 2)) {s = "0" + s;}
return s;
(1).pad(3) // => "001"
(10).pad(3) // => "010"
(100).pad(3) // => "100"
shovon /
Created Apr 10, 2015
Increasing swap size. Only tested on the ubuntu/trusty64 Vagrant box. CREDIT GOES TO --->
# size of swapfile in megabytes
# does the swap file already exist?
grep -q "swapfile" /etc/fstab
# if not then create it
if [ $? -ne 0 ]; then
julionc /
Last active Nov 13, 2019
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
jt /
Created Aug 23, 2011
Merge a forked gist

If someone forks a gist and you'd like to merge their changes. Do this:

  1. clone your repo, I use the name of the gist

     git clone git:// gist-1163142
  2. add a remote for the forked gist, I'm using the name of my fellow developer

     git remote add aaron git://
cowboy /
Last active Nov 15, 2019
jQuery Tiny Pub/Sub: A really, really, REALLY tiny pub/sub implementation for jQuery.
You can’t perform that action at this time.