Skip to content

Instantly share code, notes, and snippets.

View chrisdickinson's full-sized avatar

Chris Dickinson chrisdickinson

View GitHub Profile
FROM ubuntu:14.04
RUN apt-get update && apt-get -y install wget build-essential
RUN apt-get install -y tree
WORKDIR /gba
RUN wget http://iweb.dl.sourceforge.net/project/devkitpro/devkitARM/previous/devkitARM_r42-x86_64-linux.tar.bz2
RUN wget http://iweb.dl.sourceforge.net/project/devkitpro/libgba/libgba-20150106.tar.bz2
RUN wget http://iweb.dl.sourceforge.net/project/devkitpro/maxmod/maxmod-gba-1.0.9.tar.bz2
RUN wget http://hivelocity.dl.sourceforge.net/project/devkitpro/libfat/libfat-gba-1.0.13.tar.bz2
@chrisdickinson
chrisdickinson / install.md
Last active August 29, 2015 14:06 — forked from geek/install.md
@chrisdickinson
chrisdickinson / route.js
Created February 10, 2012 06:11 — forked from clarkf/route.js
DRY?
exports.whater = function (req, res) {
var format = req.params.format ? req.params.format : req.format;
User.findOne({ username: req.params.username }, function (err, doc) {
if (err) throw err;
if (!doc) {
if (format == 'json') {
res.json({ error: "no such user"});
} else {
res.render('404');
@chrisdickinson
chrisdickinson / add.js
Created July 21, 2011 21:45 — forked from dshaw/array.goodies.js
Array goodies from twitter rap with David Herman, see wrap up here: http://twitter.com/#!/littlecalculist/status/89855977838485504
// rbind provides "right binding" to Function.prototype --
// allows for currying arguments *after* incoming args.
var rbind = function(to) {
var args = [].slice.call(arguments),
fn = this,
_to = to;
_to === undefined && (_to = {});
### Symphony 2.0.x ###
Options +FollowSymlinks -Indexes
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
### DO NOT APPLY RULES WHEN REQUESTING "favicon.ico"
RewriteCond %{REQUEST_FILENAME} favicon.ico [NC]
@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.
/*