Skip to content

Instantly share code, notes, and snippets.

View fisherwebdev's full-sized avatar

Bill Fisher fisherwebdev

  • Facebook
  • Richmond, CA
View GitHub Profile
@douglashill
douglashill / gist:6607468
Last active December 23, 2015 08:28 — forked from alistra/gist:5099553
NSStringFromCATransform3D
NSString * NSStringFromCATransform3D(CATransform3D t)
{
return [NSString stringWithFormat:@"CATransform3D {\n% 7.2f % 7.2f % 7.2f % 7.2f\n% 7.2f % 7.2f % 7.2f % 7.2f\n% 7.2f % 7.2f % 7.2f % 7.2f\n% 7.2f % 7.2f % 7.2f % 7.2f\n}", t.m11, t.m12, t.m13, t.m14, t.m21, t.m22, t.m23, t.m24, t.m31, t.m32, t.m33, t.m34, t.m41, t.m42, t.m43, t.m44];
}
@paulirish
paulirish / rAF.js
Last active March 22, 2024 00:00
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
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];