This file contains hidden or 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
// jQuery.support.transition | |
// to verify that CSS3 transition is supported (or any of its browser-specific implementations) | |
$.support.transition = (function(){ | |
var thisBody = document.body || document.documentElement, | |
thisStyle = thisBody.style, | |
support = thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.OTransition !== undefined || thisStyle.transition !== undefined; | |
return support; | |
})(); |
This file contains hidden or 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
Math.min(Math.max(min, value), max); |
This file contains hidden or 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 this to the appropriate tag*/ | |
-webkit-font-smoothing: antialiased; | |
@font-face { | |
font-family: 'MyFontFamily'; | |
src: url('myfont-webfont.eot?') format('eot'), | |
url('myfont-webfont.woff') format('woff'), | |
url('myfont-webfont.ttf') format('truetype'), | |
url('myfont-webfont.svg#svgFontName') format('svg'); | |
} |
This file contains hidden or 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
$(OF_PATH)/addons/ofxOpenCv/src | |
$(OF_PATH)/addons/ofxOpenCv/libs/opencv/include | |
$(OF_PATH)/addons/ofxOpenCv/libs/opencv/include/opencv |
This file contains hidden or 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
function stringToMultiline (string, charLimit) { | |
var words = string.split(" "); | |
var currentLineLength = 0; | |
var currentRow = ""; | |
var rows = new Array(); | |
for (var i = 0; i < words.length; i++) { | |
if (currentLineLength + words[i].length <= charLimit){ |
This file contains hidden or 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
/ Variables | |
var centerPoint = new Point(view.viewSize.width/2, view.viewSize.height/2); | |
var outerDiameter = 30; | |
var outerRadius = outerDiameter/2; | |
var innerDiameter = 15; | |
var innerRadius = innerDiameter/2; | |
// Outer Guide Circle | |
outerGuideCircle = new Path.Circle(centerPoint , outerRadius); | |
outerGuideCircle.rotate(90, centerPoint); |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Circular Progressbar</title> | |
<script type="text/javascript" src="http://paperjs.org/static/js/paper.js"></script> | |
<script type="text/paperscript" canvas="canvas"> | |
// Variables | |
var centerPoint = new Point(view.viewSize.width/2, view.viewSize.height/2); |
This file contains hidden or 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
// Compile Coffescript | |
function compileCoffee() { | |
snockets.getConcatenation('public/javascripts/app.coffee', { | |
minify: false, | |
async: false | |
}, function(err, js) { | |
fs.writeFile("public/javascripts/app.js", js, function(err) { | |
if(err) { | |
console.log(err); | |
} |
This file contains hidden or 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
class binory.Controller | |
# Subscriber | |
_(Controller.prototype).defaults binory.Subscriber | |
model: null | |
collection: null | |
view: null | |
currentId: null |
This file contains hidden or 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
<select name="country" id="country" size="1" > | |
<option value="none">CHOOSE COUNTRY</option> | |
<option value="16">Albania</option> | |
<option value="18">Algeria</option> | |
<option value="18">Argentina</option> | |
<option value="18">Australia</option> | |
<option value="18">Austria</option> | |
<option value="18">Azerbaijan</option> | |
<option value="18">Bahamas</option> | |
<option value="18">Belarus</option> |
OlderNewer