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
# gem install html2haml --prerelease | |
for f in $(find . -type f -name \*.html); do echo "$f -> $f.haml" && html2haml --ruby19-attributes $f > "$f.haml"; done |
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 Quantum Pub/Sub | |
* -- from -- | |
* jQuery Tiny Pub/Sub v0.7 (http://benalman.com) | |
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */ | |
(function( $ ) { | |
var o = $( {} ), | |
fn = $.fn, | |
proxy = $.proxy; |
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
export class BaseScene extends Phaser.Scene | |
{ | |
constructor(config) | |
{ | |
super(config); | |
} | |
init() | |
{ | |
this.user = this.registry.get('user'); |
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
/* | |
JavaScript port of <http://scale2x.sourceforge.net/algorithm.html> | |
*/ | |
var scaleX = (function (exports) { | |
function getPixel32(data, x, y, w) { | |
var id = (x + y * w) * 4; | |
return (data[id] << 16) | (data[id + 1] << 8) | data[id + 2]; | |
} |