The spec has moved to a repo: https://github.com/defunctzombie/package-browser-field-spec to facilitate collaboration.
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
// 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. | |
/* |
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 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 |
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
(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; |
Working through @chrisdickinson's guide to JS
http://www.perkin.org.uk/posts/automated-virtualbox-smartos-installs.html
save the following as setup.sh and run it:
#!/bin/sh
#
# Configurables:
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
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) { |