Skip to content

Instantly share code, notes, and snippets.

@mckamey
mckamey / requestAnimationFrame.js
Created October 2, 2012 01:19 — forked from paulirish/rAF.js
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller
// fixes from Paul Irish and Tino Zijdel
// perf improvements by Stephen McKamey
(function(window) {
'use strict';
@mckamey
mckamey / storage.js
Created January 23, 2012 17:49 — forked from remy/gist:350433
Storage polyfill
(function (window) {
'use strict';
if (window.localStorage && window.sessionStorage) {
return;
}
// initialize if data already stored
var data = JSON.parse(window.name || '{}');
@mckamey
mckamey / pgDebug.js
Created December 29, 2011 17:51 — forked from purplecabbage/pgDebug.js
Workout your iPhone PhoneGap UI in Desktop Safari
var safariDebug = ( navigator.platform.indexOf("iPhone") < 0 && navigator.platform.indexOf("iPod") < 0 && navigator.platform.indexOf("iPad") < 0 );
if(safariDebug)
{
PhoneGap.run_command = function()
{
if (!PhoneGap.available || !PhoneGap.queue.ready)
return;
@mckamey
mckamey / LICENSE.txt
Created May 19, 2011 21:56 — forked from 140bytes/LICENSE.txt
Indexed string formatting
Copyright (c) 2011 Stephen M. McKamey, http://mck.me
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
@mckamey
mckamey / LICENSE.txt
Created May 19, 2011 21:51 — forked from 140bytes/LICENSE.txt
Named string formatting
Copyright (c) 2011 Stephen M. McKamey, http://mck.me
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
@mckamey
mckamey / LICENSE.txt
Created May 18, 2011 22:17 — forked from 140bytes/LICENSE.txt
Fibonacci
Copyright (c) 2011 Stephen M. McKamey, http://mck.me
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
{
"issue" : [
{
"@priority" : "1",
"@type" : "Task",
"@state" : "Fixed",
"@subsystem" : "No subsystem",
"@id" : "DCVR-1",
"@fixedVersion" : "",
"@projectShortName" : "DCVR",