Skip to content

Instantly share code, notes, and snippets.

@benknight
benknight / SassMeister-input.scss
Last active December 27, 2015 01:09
An index bookmarklet for all my gists that are Yelp UI tweaks.
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
#yelp-ui-demos {
z-index: 9999; // "I'M THE TOP-MOST THING I PROMISE!"
-webkit-font-smoothing: antialiased;
position: fixed;
bottom: 10px;
@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"