Skip to content

Instantly share code, notes, and snippets.

View justindarc's full-sized avatar

Justin D'Arcangelo justindarc

View GitHub Profile
@justindarc
justindarc / layertree.js
Last active January 27, 2021 00:51
Firefox OS Layer Tree Utility
#!/usr/bin/env node
/**
* Firefox OS Layer Tree Utility
*
* Captures layer tree dumps from `adb logcat` and
* outputs them to the console without log noise.
*
* Usage:
*
@justindarc
justindarc / index.html
Created January 26, 2014 06:43
Snap.js Lists
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if IEMobile 7 ]> <html class="no-js iem7"> <![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Snap List</title>
@justindarc
justindarc / angular-snap.js
Last active December 17, 2015 14:19
AngularJS Directive for Snap.js
angular.module('angular-snap', [])
.directive('snap', function() {
var parseBoolean = function(attrValue, defaultValue) {
var strValue = '' + attrValue;
if (strValue === 'true' ||
strValue === 'yes' ||
strValue === '1') return true;
if (strValue === 'false' ||
@justindarc
justindarc / Fetch.sublime-settings
Created October 6, 2012 07:01
Sublime Text 2 - Fetch Settings
{
"files":
{
// jQuery
"jquery.js" : "http://code.jquery.com/jquery.js",
"jquery.min.js" : "http://code.jquery.com/jquery.min.js",
// jQuery Plugins
"jquery.cookie.js" : "https://raw.github.com/carhartl/jquery-cookie/master/jquery.cookie.js",