This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add ipad IOS7 Classes | |
* Allows us to temporariliy try to fix the slight scroll 100% hack. | |
* http://stackoverflow.com/questions/19012135/ios-7-ipad-safari-landscape-innerheight-outerheight-layout-issue | |
*/ | |
if (navigator.userAgent.match(/iPad;.*CPU.*OS 7_\d/i)) { | |
$('html').addClass('ipad ios7'); | |
} | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* CONTENTS | |
///////////////////////////////////// | |
*/ | |
// 00. LESS | |
/* | |
01. BASE | |
02. LAYOUT | |
03. MODULES | |
04. STATE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default_run_options[:pty] = true | |
ssh_options[:forward_agent] = true | |
ssh_options[:auth_methods] = ["publickey"] | |
ssh_options[:keys] = ["~/.ssh/key.pem"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Car = Backbone.Model.extend({ | |
defaults:{ | |
engine: 'gasoline', | |
hp: 0, | |
doors: 4, | |
color: 'generic' | |
}, | |
engine: function(){ | |
return 'Wroomm'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const sketcher = require('canvas-sketch-tool'); // not yet public | |
// Import geometry & utilities | |
const createRegl = require('regl'); | |
const createPrimitive = require('primitive-icosphere'); | |
const createCamera = require('perspective-camera'); | |
const glslify = require('glslify'); | |
const hexRgb = require('hex-rgb'); | |
// Utility to convert hex string to [ r, g, b] floats |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// <img id="myimage" src="http://placecage/1280/720"> | |
var image = document.getElementById('myimage'); | |
var mc = new Hammer.Manager(image); | |
var pinch = new Hammer.Pinch(); | |
var pan = new Hammer.Pan(); | |
pinch.recognizeWith(pan); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add a delay at the end of the timeline (or at any label) | |
* @param {number} delay Seconds to wait | |
* @param {string} position Label name where to start the delay | |
* | |
* Usage: tl.addDelay(4); //easy! | |
*/ | |
TimelineLite.prototype.addDelay = function (delay, position) { | |
var delayAttr; | |
if(typeof delay === 'undefined' || isNaN(delay)){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(function(){ | |
var instance = null; | |
function MySingleton(){ | |
if(instance !== null){ | |
throw new Error("Cannot instantiate more than one MySingleton, use MySingleton.getInstance()"); | |
} | |
this.initialize(); | |
} |
OlderNewer