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
ig.module( | |
'plugins.tween' | |
).requires( | |
'impact.impact' | |
).defines((function(){ 'usestrict'; | |
var Tween = window.Tween = ig.Class.extend({ | |
init: function(options){ | |
// from, to, duration, tween |
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
// ==ClosureCompiler== | |
// @compilation_level SIMPLE_OPTIMIZATIONS | |
/** | |
* @license Highcharts JS v2.3.5 (2012-12-19) | |
* | |
* (c) 2009-2012 Torstein Hønsi | |
* | |
* License: www.highcharts.com/license | |
*/ |
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
(function(){ | |
String.prototype.substitute = function(object, regexp){ | |
return String(this).replace(regexp || (/\\?\{([^{}]+)\}/g), function(match, name){ | |
if (match.charAt(0) == '\\') return match.slice(1); | |
return (object[name] != null) ? object[name] : ''; | |
}); | |
}; | |
})(); |
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
fruitDestroyed: function(){ | |
if (this.minDestroyed || this.counted < 5) { | |
return; | |
} | |
this.minDestroyed = true; | |
// show form | |
} |
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 Human = function(name){ | |
this.name = name; | |
}; | |
Human.prototype.getName = function(){ | |
return this.name; | |
}; | |
var ama = new Human('Amadeus'); |
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
/* exported Example, Example2, Obj, test */ | |
function Example(){ | |
return true; | |
} | |
var test = new Class({ | |
// weird | |
func: function(){} | |
}); |
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
{% if asset.asset_css %} | |
<style type="text/css"> | |
{% raw asset.asset_css %} | |
</style> | |
{% end %} | |
{% if campaign.is_challenge %} | |
<style type="text/css"> | |
html, body { | |
min-height:{{ height }}px | |
}; |
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
// jshint unused:false | |
/* global console */ | |
var num = 1, | |
flt = 2.1, | |
neg = -1, | |
hex = 0xFF2200, | |
octal = -01234, | |
nan = NaN, | |
nll = null, |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
// Do stuff here | |
</script> |
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
" My First .vimrc | |
" Run this command in Terminal to setup Vundle and appropriate directories: | |
" mkdir ~/.vim ~/.vim/bundle; git clone https://github.com/gmarik/vundle.git .vim/bundle/vundle | |
" Always set nocompatible, seriously | |
set nocompatible | |
" Required for Vundle | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() |