Skip to content

Instantly share code, notes, and snippets.

Cory uniqname

Block or report user

Report or block uniqname

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

Keybase proof

I hereby claim:

  • I am uniqname on github.
  • I am uniqname ( on keybase.
  • I have a public key whose fingerprint is 4CC2 022E 189D 4A8D AA12 1AEC E307 96BD 29EE 6A01

To claim this, I am signing this object:

uniqname / .editorconfig
Created Mar 19, 2015
Common editorconfig
View .editorconfig
# top-most EditorConfig file
root = true
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 4
uniqname / .bowerrc
Last active Aug 29, 2015
Replace an element with a rendered htmlstring
View .bowerrc
"registry": {
"register": ""
View JS-REPL.markdown


There's not a good, simple embeddable REPL for JS out there that I could find. I wanted one for presentations on JavaScript concepts. The developer tools' console would be ideal, but bailing out of my presentation and opening a console brakes the flow. Tools like et al. are great, but more overhead and set up than I need. I just want to type JS and show the result. This is a decent first step for my needs.

A Pen by Cory on CodePen.


uniqname / SassMeister-input.scss
Created Dec 1, 2014
Generated by
View SassMeister-input.scss
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
.full {
@each $pos in ("top", 'left', bottom, right) {
#{$pos}: 0;
uniqname / SassMeister-input.scss
Created Nov 26, 2014
Generated by
View SassMeister-input.scss
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
//Media Queries
$mq-size--small: 42em;
$mq-size--med: 47.5em;
$mq-size--large: 56.25em;
uniqname / SassMeister-input.scss
Created Oct 8, 2014
Generated by
View SassMeister-input.scss
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
$positions: (top, right, bottom, left);
.stretch {
position: absolute;
@each $pos in $positions {
uniqname / polyPict.js
Created Apr 9, 2014
polyPict - <picture> polyfill
View polyPict.js
(function() {
window.addEventListener("DOMContentLoaded", function() {
//Use live-node-lists here so we don't have to query the DOM everytime polyPict runs.
var picturesLNL = document.getElementsByTagName("picture"),
imgLNL = document.getElementsByTagName("img"),
size2Px = (function() {
var testEl = document.createElement("div"); = "absolute"; = -1000;
View legalIpsum.js
(function() {
var words = [" a fortiori", "a mensa et thoro", "a posteriori", "a priori", "a quo", "ab extra", "ab initio", "absque hoc", "Actori incumbit probatio", "actus reus", "ad coelum", "ad colligenda bona", "ad hoc", "ad hominem", "ad idem", "ad infinitum", "ad litem", "ad quod damnum", "ad valorem", "adjournment sine die", "affidavit", "alter ego", "amicus curiae", "animus nocendi", "animus possidendi", "animus revertendi", "ante", "arguendo", "Audi alteram partem", " bona fide", "bona vacantia", " Cadit quaestio", "Casus belli", "casus fortuitus", "Caveat", "Caveat emptor", "Certiorari", "Ceteris paribus", "cogitationis poenam nemo patitur", "compensatio morae", "compos mentis", "Condicio sine qua non", "consensus ad idem", "consensus facit legem", "consuetudo pro lege servatur", "contra", "contra bonos mores", "contra legem", "Contradictio in adjecto", "contra proferentem", "coram non judice", "corpus delicti", "corpus juris", "corpus juris civilis", "corpus juris gentium", "corpus juris secund
uniqname / DOMTreePath
Created Dec 5, 2013
Find a path from one node to another
View DOMTreePath
var getPath = function (start, end) {
var getParents = function (el) {
var parents = [el];
el = el.parentElement;
while (el.parentElement) {
parents.push(el = el.parentElement);
You can’t perform that action at this time.