Skip to content

Instantly share code, notes, and snippets.

View chrisdickinson's full-sized avatar

Chris Dickinson chrisdickinson

View GitHub Profile
@bishboria
bishboria / springer-free-maths-books.md
Last active April 25, 2024 06:27
Springer made a bunch of books available for free, these were the direct links

build

Clone and build Node for analysis:

$ git clone https://github.com/joyent/node.git
$ cd node
$ export GYP_DEFINES="v8_enable_disassembler=1"
$ ./configure
$ make -j4
@creationix
creationix / compiler.js
Last active December 27, 2015 19:29
Requirements for module compiler for browser envs.
var mine = require('./mine.js');
var join = require('./pathjoin.js');
// A simple function to get the dirname of a path
// Trailing slashes are ignored. Leading slash is preserved.
function dirname(path) {
return join(path, "..");
}
function compile(loader, initial, callback) {
@geek
geek / install.md
Last active December 1, 2020 12:30
Installing and running SmartOS on OSX with VirtualBox
@defunctzombie
defunctzombie / browser.md
Last active April 10, 2024 17:45
browser field spec for package.json
@3rd-Eden
3rd-Eden / core.js
Created November 5, 2011 18:56
custom script loader
(function (global) {
var _namespace = global.namespace
, namespace = {};
namespace.push = function push (fn) {
return fn && typeof fn === 'function' && fn(namespace);
};
if (_namespace && _namespace.length) {
var i = _namespace.length;
"""
jQuery templates use constructs like:
{{if condition}} print something{{/if}}
This, of course, completely screws up Django templates,
because Django thinks {{ and }} mean something.
Wrap {% verbatim %} and {% endverbatim %} around those
blocks of jQuery templates and this will try its best
@chrisdickinson
chrisdickinson / WIP_whisper.js
Created July 30, 2010 17:18 — forked from toastdriven/WIP_base.html
FULL ON DOUBLE RAINBOW
// Whisper.js
// A light-weight blog in node.js.
// Requires:
// http://github.com/ry/node_postgres.git
// http://github.com/chrisdickinson/pieshop.git
// http://github.com/chrisdickinson/postpie.git
// ..and JSDTL, but that's not publically available yet (sorry)
// Licensed under the BSD.
/*