Skip to content

Instantly share code, notes, and snippets.

Avatar

Jasmine Hegman r4j4h

View GitHub Profile
@r4j4h
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
r4j4h / resize_boot2docker.sh
Created Jun 13, 2016 — forked from joost/resize_boot2docker.sh
Resize boot2docker VirtualBox image
View resize_boot2docker.sh
# Steps we will take:
# 1. Change boot2docker image type (this will take long)
# 2. Resize image
# 3. Resize partion (using GParted)
#
# Also see: https://docs.docker.com/articles/b2d_volume_resize/
# Stop boot2docker
boot2docker stop
@r4j4h
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
r4j4h / README.md
Last active Aug 29, 2015 — forked from jrideout/README.md
ColorBrewer scale page for http://bl.ocks.org/
View README.md

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.