Skip to content

Instantly share code, notes, and snippets.

View r4j4h's full-sized avatar

Jasmine Hegman r4j4h

View GitHub Profile
@r4j4h
r4j4h / README.md
Last active August 29, 2015 14:11 — forked from jrideout/README.md
ColorBrewer scale page for http://bl.ocks.org/

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.

@r4j4h
r4j4h / 0_reuse_code.js
Last active August 29, 2015 14:12
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
@r4j4h
r4j4h / _.md
Created December 31, 2014 23:57
Negative Stacked Bar Charts
@r4j4h
r4j4h / SassMeister-input-HTML.html
Last active August 29, 2015 14:23
Generated by SassMeister.com.
<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 / SassMeister-input-HTML.html
Last active August 29, 2015 14:23
Generated by SassMeister.com.
<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 August 29, 2015 14:23
Generated by SassMeister.com.
<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 August 29, 2015 14:25
Generated by SassMeister.com.
<button>Button</button>
@r4j4h
r4j4h / RiotSketchSpecRunner.html
Created July 24, 2015 01:38
Sketch of a SpecRunner to help demonstrate how to potentially test a Riot application
<!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 / resize_boot2docker.sh
Created June 13, 2016 00:59 — forked from joost/resize_boot2docker.sh
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: https://docs.docker.com/articles/b2d_volume_resize/
# Stop boot2docker
boot2docker stop
@r4j4h
r4j4h / EventListener.d.ts
Created May 9, 2019 19:39 — forked from rsms/EventListener.d.ts
Better EventEmitter TypeScript interface
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;