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
// such new game in Flappy Doge | |
// http://www.dogetek.co/game/ | |
// plz developer tools in chrome | |
// much paste in console | |
// move mouse expert | |
(function () { | |
var pos = null; | |
$(window).mousemove(function (e) { |
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(){ | |
var oldPrint = window.print; | |
var slice = Array.prototype.slice; | |
window.print = function () { | |
if (typeof window.onbeforeprint === "function") { | |
window.onbeforeprint.apply(this, slice.call(arguments)); | |
} | |
oldPrint.apply(this, slice.call(arguments)); | |
if (typeof window.onafterprint === "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
function chunk(array, length) { | |
var chunked = []; | |
for (var i = 0, len = array.length; i < len; i += length) { | |
chunked.push(array.slice(i, i + length)); | |
} | |
return chunked; | |
}; |