Skip to content

Instantly share code, notes, and snippets.

// Transmitter
var storedHeight = 0, payload;
setInterval(function() {
var currentHeight = $('.ng-scope').height();
if (currentHeight == storedHeight) {
return false;
} else {
storedHeight = currentHeight;
payload = JSON.stringify({ height: currentHeight });
@benhodgson87
benhodgson87 / _icons.scss
Last active August 29, 2015 14:04
ng-store Icon Sass-Map refactor
// Setup an icon array of name modifer keys + content values
// eg. "pencil": "\e602"; becomes a class of .icon--pencil
$icon-types: (
"pencil": "\e602",
"ticket": "\e60d",
"cart2": "\e60f",
"credit": "\e627",
"location": "\e612",
"map": "\e634",
"clock": "\e614",
@benhodgson87
benhodgson87 / countries.simple.json
Created June 10, 2014 16:56
Countries JSON (Simple)
{
"AF": {
"name": "Afghanistan"
},
"AX": {
"name": "Åland Islands"
},
"AL": {
"name": "Albania"
},