Skip to content

Instantly share code, notes, and snippets.


Jasmine Hegman r4j4h

View GitHub Profile
r4j4h / EventListener.d.ts
Created May 9, 2019 — forked from rsms/EventListener.d.ts
Better EventEmitter TypeScript interface
View EventListener.d.ts
export class EventEmitter<Events, K = keyof Events|symbol> {
addListener(event: K, listener: (...args: any[]) => void): this;
on(event: K, listener: (...args: any[]) => void): this;
once(event: K, listener: (...args: any[]) => void): this;
removeListener(event: K, listener: (...args: any[]) => void): this;
removeAllListeners(event?: K): this;
setMaxListeners(n: number): this;
getMaxListeners(): number;
listeners(event: K): Function[];
emit(event: K, ...args: any[]): boolean;
r4j4h /
Created Jun 13, 2016 — forked from joost/
Resize boot2docker VirtualBox image
# Steps we will take:
# 1. Change boot2docker image type (this will take long)
# 2. Resize image
# 3. Resize partion (using GParted)
# Also see:
# Stop boot2docker
boot2docker stop
r4j4h / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
r4j4h /
Last active Aug 29, 2015 — forked from jrideout/
ColorBrewer scale page for

A quick visual reference to every ColorBrewer scale; colors by Cynthia Brewer. Available in CSS and JS format. Click on a palette to log the constituent colors in hexadecimal RGB to the console.