Skip to content

Instantly share code, notes, and snippets.

View terinjokes's full-sized avatar

Terin Stock terinjokes

View GitHub Profile
/**
* @license
* Based on Lo-Dash 2.2.1 <http://lodash.com/>
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.5.2
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*
* Available under MIT license <http://lodash.com/license>
*/
jQuery.fn.some = function(callback) {
@terinjokes
terinjokes / Gemfile
Last active December 25, 2015 13:39
Bundle include rubysl during gem development for Rubinius
source "https://rubygems.org"
gemspec
platforms :rbx do
gem "rubysl", "~> 2.0.0", :group => :development
end
>>> Installing rubinius 2.0.0 into /home/terin/.rubies/rubinius-2.0.0 ...
>>> Installing dependencies for rubinius 2.0.0 ...
Reading package lists...
Building dependency tree...
Reading state information...
automake is already the newest version.
bison is already the newest version.
flex is already the newest version.
g++ is already the newest version.
gcc is already the newest version.
>>> Installing rubinius 2.0.0 into /home/terin/.rubies/rubinius-2.0.0 ...
>>> Installing dependencies for rubinius 2.0.0 ...
Reading package lists...
Building dependency tree...
Reading state information...
automake is already the newest version.
bison is already the newest version.
flex is already the newest version.
g++ is already the newest version.
gcc is already the newest version.
var browserify = require('browserify'),
fs = require('fs');
var bundleStream = browserify(['./index.js']).bundle({standalone: false, debug: true});
bundleStream.pipe(fs.createWriteStream('terinjokes.js'));
@terinjokes
terinjokes / package.json
Last active December 21, 2015 11:38
Example of browserify.transform
{
"name": "example",
"version": "0.0.1",
"devDependencies": {
"hbsfy": "~0.1.5"
},
"browserify": {
"transform": "hbsfy"
}
}
root@7f5ad9fc8238:/# couchdb
Apache CouchDB 1.3.0 (LogLevel=info) is starting.
{"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/etc/couchdb/default.ini","/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,shutdown}},[{couch_server_sup,start_server,1,[]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,274}]}]}}}}}},[{couch,start,0,[]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
{
"name": "www-frontend",
"version": "0.1.0",
"devDependencies": {
"underscore.string": "~2.3.1",
"jquery": "2.0.2",
"backbone": "~1.0.0",
"backbone.marionette": "~1.0.3",
"backbone.babysitter": "~0.0.6",
"backbone.wreqr": "~0.2.0",
{
"name": "www-frontend",
"version": "0.1.0",
"devDependencies": {
"underscore.string": "~2.3.1",
"jquery": "2.0.2",
"backbone-amd": "~1.0.0",
"backbone.marionette": "~1.0.3",
"backbone.babysitter": "~0.0.6",
"backbone.wreqr": "~0.2.0",
@terinjokes
terinjokes / 404_content.conf
Created June 12, 2013 18:24
nginx configuration to return 404 for all pages with content.
server {
listen 80 default_server;
server_name _;
location / {
return 404
}
location /404.html {
root /var/www/default/htdocs;