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 / RiotSketchSpecRunner.html
Created Jul 24, 2015
Sketch of a SpecRunner to help demonstrate how to potentially test a Riot application
View RiotSketchSpecRunner.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Jasmine Spec Runner v<%= jasmineVersion %></title>
<link rel="shortcut icon" type="image/png" href="lib/jasmine-<%= jasmineVersion %>/jasmine_favicon.png">
<link rel="stylesheet" href="lib/jasmine-<%= jasmineVersion %>/jasmine.css">
<script src="lib/jasmine-<%= jasmineVersion %>/jasmine.js"></script>
@r4j4h
r4j4h / SassMeister-input-HTML.html
Last active Aug 29, 2015
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<button>Button</button>
@r4j4h
r4j4h / SassMeister-input-HTML.html
Last active Aug 29, 2015
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<p>Standard paragraph.</p>
<p class="page-specific-thing">Page specific paragraph.</p>
<div>
<p>Standard paragraph in a div.</p>
</div>
<div class="callout">
<p>Standard paragraph in a callout.</p>
@r4j4h
r4j4h / SassMeister-input-HTML.html
Last active Aug 29, 2015
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<p>Standard paragraph.</p>
<p class="page-specific-thing">Page specific paragraph.</p>
<div>
<p>Standard paragraph in a div.</p>
</div>
<div class="callout">
<p>Standard paragraph in a callout.</p>
@r4j4h
r4j4h / SassMeister-input-HTML.html
Last active Aug 29, 2015
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<button>Button</button>
<input type="submit" />
<div class="btn">Bootstrap Button</div>
<div class="button">.button Button</div>
<div class="callout">
<button>Button</button>
<input type="submit" />
<div class="btn">Bootstrap Button</div>
<div class="button">.button Button</div>
@r4j4h
r4j4h / _.md
Created Dec 31, 2014
Negative Stacked Bar Charts
View _.md
@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.