Skip to content

Instantly share code, notes, and snippets.

View whittle's full-sized avatar

Jason Whittle whittle

  • New York, NY
View GitHub Profile
'use strict';
var debug = require('debug')('papillon:config_plugin');
var iMap = require('immutable').Map;
function configPlugin() {
return {
name: 'ConfigPlugin',
plugContext: function(options, context, app) {

Keybase proof

I hereby claim:

  • I am whittle on github.
  • I am whittle (https://keybase.io/whittle) on keybase.
  • I have a public key whose fingerprint is D2EC 7845 B643 F951 5804 43F0 CC58 8DB9 CA13 64FC

To claim this, I am signing this object:

class SiteFaqsController < ApplicationController
include Roar::Rails::ControllerAdditions
respond_to :hal
def show
respond_with SiteFaq.new('How do I understand recursion?', 'First, you must understand recursion.')
end
end
@whittle
whittle / site_faqs_1.jsonld
Created May 1, 2014 21:53
A small JSON-LD document with a context of Schema.org.
{
"@context": "http://schema.org/",
"@id": "/site_faqs/1",
"@type": "Question",
"text": "Can I foo?",
"acceptedAnswer": {
"text": "Yes! You can foo while you bar."
}
}
@whittle
whittle / gist:7950070
Last active December 31, 2015 06:49
Error brewing camlistore
$ brew doctor | pbcopy
Your system is ready to brew.
$ brew --config | pbcopy
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/mxcl/homebrew
HEAD: 6c0eb52893a467a14d27185a43ea2733fa710a67
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit arrandale
@whittle
whittle / chef.log
Created April 11, 2012 23:59
Chef fails to install mosh from source
[Wed, 11 Apr 2012 22:03:36 +0000] INFO: *** Chef 0.10.8 ***
[Wed, 11 Apr 2012 22:03:38 +0000] INFO: Run List is [recipe[getting-started], recipe[chef-client], recipe[aws], recipe[apt], recipe[mosh]]
[Wed, 11 Apr 2012 22:03:38 +0000] INFO: Run List expands to [getting-started, chef-client, aws, apt, mosh]
[Wed, 11 Apr 2012 22:03:38 +0000] INFO: Starting Chef Run for adranus
[Wed, 11 Apr 2012 22:03:38 +0000] INFO: Running start handlers
[Wed, 11 Apr 2012 22:03:38 +0000] INFO: Start handlers complete.
[Wed, 11 Apr 2012 22:03:41 +0000] INFO: Loading cookbooks [apt, aws, chef-client, getting-started, mosh]
[Wed, 11 Apr 2012 22:03:41 +0000] INFO: AptRepository light-weight provider already initialized -- overriding!
[Wed, 11 Apr 2012 22:03:41 +0000] INFO: AwsEbsVolume light-weight provider already initialized -- overriding!
[Wed, 11 Apr 2012 22:03:41 +0000] INFO: AwsElasticIp light-weight provider already initialized -- overriding!
@whittle
whittle / brew_install_qt.txt
Created March 23, 2012 00:33
brew install -v qt
==> Downloading http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.8.0.tar.gz
Already downloaded: /Users/jason/Library/Caches/Homebrew/qt-4.8.0.tar.gz
/usr/bin/tar xf /Users/jason/Library/Caches/Homebrew/qt-4.8.0.tar.gz
==> Downloading patches
/usr/bin/curl -qf#LA Homebrew 0.9 (Ruby 1.8.7-249; Mac OS X 10.6.8) https://qt.gitorious.org/qt/qt/commit/448ab7cd150ab7bb7d12bcac76bc2ce1c72298bd?format=patch -o 000-homebrew.diff --silent
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file src/corelib/tools/qsimd_p.h
==> ./configure -prefix /usr/local/Cellar/qt/4.8.0 -system-libpng -system-zlib -L/usr/X11/lib -I/usr/X11/include -confirm-license -opensource -cocoa -fast -no-qt3support -nomake demos -nomake examples -arch x86_64 -release
./configure -prefix /usr/local/Cellar/qt/4.8.0 -system-libpng -system-zlib -L/usr/X11/lib -I/usr/X11/include -confirm-license -opensource -cocoa -fast -no-qt3support -nomake demos -nomake examples -arch x86_64 -release
(function() {
var http = require('http');
var say_hello = function(request, response) {
var message = 'مرحبا العالم';
response.setHeader('Content-Type', 'text/plain; charset=utf-8');
response.setHeader('Content-Length', Buffer.byteLength(message, 'utf8'));
response.setHeader('X-Content-Character-Count', message.length);
response.write(message, 'utf8');