Skip to content

Instantly share code, notes, and snippets.

View grimen's full-sized avatar

Jonas Grimfelt grimen

View GitHub Profile
/*
* jQuery Mobile v1.3.0
* http://jquerymobile.com
*
* Copyright 2010, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
@grimen
grimen / SubArray.js
Last active December 17, 2015 10:29 — forked from xk/SubArray.js
// 20111028 [email protected]
// How to subclass Array
// In reply to https://gist.github.com/1100841/9c959db9314338a09c0f288c2c0ca5553816e400
function subArray () {
var nu = Array.prototype.slice.apply(arguments); // @grimen: Fixed to support `new Array(666)` (=> `[666]` instead of Array of size 666)
nu.__proto__= subArray.prototype;
return nu;
}
@grimen
grimen / .bowerrc
Last active December 19, 2015 10:39
HTML5/S3/Grunt/Make/Pow project setup.
{
"directory": "app/components"
}
@grimen
grimen / whosample.rejected.txt
Last active December 21, 2015 23:38
Sample submissions rejected by Who Sampled for no valid reason.
Sample submissions that WhoSampled rejected for no valid reason:
--
O.C. & Apollo Brown - "The First 48" | http://youtube.com/watch?v=oYOitap4EUQ
~ | Cream - "White Room" | http://youtube.com/watch?v=pkae0-TgrRU
--
O.C. & Apollo Brown - "Prove Me Wrong" | http://youtube.com/watch?v=DW0QFi971Cg
@grimen
grimen / libcaca.rb
Last active December 24, 2015 18:49
require 'formula'
class Libcaca < Formula
homepage 'http://caca.zoy.org/wiki/libcaca'
url 'http://caca.zoy.org/files/libcaca/libcaca-0.99.beta18.tar.gz'
version '0.99b18'
sha1 '0cbf8075c01d59b53c3cdfec7df9818696a41128'
option 'with-imlib2', 'Build with Imlib2 support'
@grimen
grimen / .env
Last active December 24, 2015 20:29
Automaticall generate unique/predicatable/consistent $PORT for each project based on fingerprinting of `.powder` and make Pow Proxy aware of it.
# custom ENV variables
@grimen
grimen / FAIL.log
Last active December 24, 2015 22:39
cat ./input.png | potrace > ./output.eps
P4
393 500
????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
/*! rasterizeHTML.js - v0.5.1 - 2013-11-14
* http://www.github.com/cburgmer/rasterizeHTML.js
* Copyright (c) 2013 Christoph Burgmer;
/* Integrated dependencies:
* URI.js (MIT License/GPL v3),
* CSSOM (MIT License),
* xmlserializer (MIT License) */
!function(a){"object"==typeof exports?module.exports=a():"function"==typeof define&&define.amd?define(a):"undefined"!=typeof window?window.CSSOM=a():"undefined"!=typeof global?global.CSSOM=a():"undefined"!=typeof self&&(self.CSSOM=a())}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){var d={CSSRule:a("./CSSRule").CSSRule,MatcherList:a("./MatcherList").MatcherList};d.CSSDocument
for the server THOMSON has been deprecated (PreXP), disconnecting
smb1_smb_negotiate: Support for the server THOMSON has been deprecated (PreXP), disconnecting
disk2s2: media is not present.
0 [Level 3] [Facility com.apple.system.fs] [ErrType IO] [ErrNo 6] [IOType Read] [PBlkNum 6704] [LBlkNum 837]
0 [Level 3] [Facility com.apple.system.fs] [DevNode /dev/disk2s2] [MountPt /Volumes/Macintosh HD 1]
disk2s2: media is not present.
0 [Level 3] [Facility com.apple.system.fs] [ErrType IO] [ErrNo 6] [IOType Read] [PBlkNum 6704] [LBlkNum 837]
0 [Level 3] [Facility com.apple.system.fs] [DevNode /dev/disk2s2] [MountPt /Volumes/Macintosh HD 1]
disk2s2: media is not present.
0 [Level 3] [Facility com.apple.system.fs] [ErrType IO] [ErrNo 6] [IOType Read] [PBlkNum 6704] [LBlkNum 837]
module.exports = function(requestData, done) {
var err = {}, responseData = {hello: "world"};
done(err, responseData)
};