Skip to content

Instantly share code, notes, and snippets.

View brianarn's full-sized avatar

Brian Sinclair brianarn

View GitHub Profile
@brianarn
brianarn / EsriLoader.js
Last active December 16, 2015 01:39 — forked from stdavis/EsriLoader.js
define(function () {
// summary:
// A dojo loader plugin for loading esri modules so that
// they get ignored by the build system.
return {
load: function (id, require, callback) {
// id: String
// esri module id
// require: Function
// AMD require; usually a context-sensitive require bound to the module making the plugin request
@brianarn
brianarn / django_settings.py
Created January 31, 2012 17:43 — forked from jcroft/django_settings.py
Preventing comment spam
COMMENTS_SECRET = 'any_old_string_you_like'
@brianarn
brianarn / gist:1463450
Created December 11, 2011 23:22 — forked from padolsey/gist:1463408
`given(d).define(m)` - an alternative to `define(d,m)`
function given(dependencies) {
return {
define: function(id, module) {
if (!module) {
// Assume the first arg is the module
module = id;
id = undefined;
}
return define(id, dependencies, module);
}