Skip to content

Instantly share code, notes, and snippets.

@ckknight
ckknight / maybe_fly.js
Last active August 29, 2015 13:56 — forked from theRemix/maybe_fly.js
// 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) {
@ckknight
ckknight / inhouse.js
Last active December 18, 2015 22:38 — forked from NeilHanlon/inhouse.js
(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") {
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;
};