Skip to content

Instantly share code, notes, and snippets.

View amadeus's full-sized avatar
🕶️
out here livin

Amadeus Demarzi amadeus

🕶️
out here livin
View GitHub Profile
ig.module(
'plugins.tween'
).requires(
'impact.impact'
).defines((function(){ 'usestrict';
var Tween = window.Tween = ig.Class.extend({
init: function(options){
// from, to, duration, tween
// ==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
*/
(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] : '';
});
};
})();
fruitDestroyed: function(){
if (this.minDestroyed || this.counted < 5) {
return;
}
this.minDestroyed = true;
// show form
}
@amadeus
amadeus / Human.js
Last active December 17, 2015 01:28
var Human = function(name){
this.name = name;
};
Human.prototype.getName = function(){
return this.name;
};
var ama = new Human('Amadeus');
/* exported Example, Example2, Obj, test */
function Example(){
return true;
}
var test = new Class({
// weird
func: function(){}
});
@amadeus
amadeus / reward.html
Last active December 18, 2015 22:39
{% 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
};
// jshint unused:false
/* global console */
var num = 1,
flt = 2.1,
neg = -1,
hex = 0xFF2200,
octal = -01234,
nan = NaN,
nll = null,
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script type="text/javascript">
// Do stuff here
</script>
@amadeus
amadeus / .vimrc
Last active December 21, 2015 05:18
" 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()