Skip to content

Instantly share code, notes, and snippets.



  • LightningFast
  • Truckee, Ca
View GitHub Profile
View Sass error on Heroku
arron@arron-ubuntu:~/Documents/slash$ heroku logs
==> dyno-2997016.log <==
Running on MongoHQ
BSON::ObjectID is deprecated. Please use BSON::ObjectId instead.
BSON::ObjectID is deprecated. Please use BSON::ObjectId instead.
/usr/ruby1.8.7/lib/ruby/1.8/fileutils.rb:243:in `mkdir': Read-only file system - /disk1/home/slugs/345453_676f2cb_7e8a-2291b117-2cec-48b0-9c98-efabd5fe14e7/mnt/public/stylesheets/compiled - Heroku has a read-only filesystem. See (Errno::EROFS)
from /usr/ruby1.8.7/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir'
from /usr/ruby1.8.7/lib/ruby/1.8/fileutils.rb:217:in `mkdir_p'
from /usr/ruby1.8.7/lib/ruby/1.8/fileutils.rb:215:in `reverse_each'
from /usr/ruby1.8.7/lib/ruby/1.8/fileutils.rb:215:in `mkdir_p'
pennyfx / gist:973870
Created May 16, 2011
mongodb install fail
View gist:973870
arron@ubuntu11:~/programming/backbone$ npm install mongodb
> mongodb@0.9.4-3 install /home/arron/programming/backbone/node_modules/mongodb
> bash ./
./ line 2: [: too many arguments
Not building native library for cygwin
make -C ./external-libs/bson
make[1]: Entering directory `/home/arron/programming/backbone/node_modules/mongodb/external-libs/bson'
rm -rf build .lock-wscript bson.node
View gist:988072
Started POST "/questions" for at 2011-05-23 19:53:06 -0700
Processing by QuestionsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"rDxBRpG0cVTO2WsjqpPci1J34FLBHmHJgfutqG0+mDc=", "question"=>{"position"=>{"lat"=>"37.36883", "long"=>"-122.036349"}, "title"=>"New Test Questions, does this work yet?", "tags"=>"test", "body"=>"Testing the question adding again.. I wonder why its broken!", "language"=>"", "wiki"=>"0", "pollable"=>"false", "anonymous"=>"false"}, "tag_input"=>"", "commit"=>"Create"}
(F) MONGODB slashbiasdev['groups'].find({:state=>"active", :domain=>"localhost.lan"})
(F) MONGODB slashbiasdev['users'].find({:_id=>"4dc38f9a9aecd73671000005"})
(F) MONGODB slashbiasdev['tags'].find({"group_id"=>"4dc3853b9aecd7296100000c", :name=>{"$in"=>["test"]}}, {:_type=>1, :name=>1})
(F) MONGODB slashbiasdev['$cmd'].find({"count"=>"users", "query"=>{:login=>"aschaar", :_id=>{"$ne"=>"4dc38f9a9aecd73671000005"}}, "fields"=>nil})

pennyfx / gist:1294757
Created Oct 18, 2011
Mongoose Bug#552
View gist:1294757
var mongoose = module.exports.mongoose = require('mongoose');
var PostSchema = new mongoose.Schema({
title: {
type: String
slug_key: String,
body: String,
last_activity_at: Date,
created_at: {
View gist:1320942
/Users/arron/Envs/flightdeck/bin/vend run on Thu Oct 27 14:16:52 2011
Downloading/unpacking jingo
Getting page
URLs to search for versions for jingo:
Getting page
Analyzing links from page
Skipping link (from; not a file
Skipping link (from; not a file
View gist:1328810
ERROR: test_addon_with_deep_dependency (FlightDeck.apps.xpi.tests.test_building.XPIBuildTest)
Traceback (most recent call last):
File "/Users/arron/programming/FlightDeck/../FlightDeck/apps/xpi/tests/", line 389, in test_addon_with_deep_dependency
response = addon.latest.build_xpi(hashtag=self.hashtag)
File "/Users/arron/programming/FlightDeck/apps/jetpack/", line 1311, in build_xpi
package_dir = self.make_dir(packages_dir)
File "/Users/arron/programming/FlightDeck/apps/jetpack/", line 295, in make_dir
pennyfx / gist:3723388
Created Sep 14, 2012
x-indexDb scraps
View gist:3723388
// Persistence and databinding tag thoughts
// Add one of these for each entity you want indexDb persistence
<x-indexdb for="x-todo-item" path="todoapp.todo-item">
<x-indexdb for="x-user-preferences" path="todoapp.preferences">
//when injected into the DOM will auto request data and inflate
<x-todo-item data-id="1">
pennyfx / gist:3801410
Created Sep 28, 2012
x-blog-article tag
View gist:3801410
I know we joked about this tag before, but check this out.
So I don't want to go through the trouble of creating an entire blog system. Plus we don't need it. We could easily create something simple with a few x-tags.
So imagine a directory with a bunch of html fragments containing x-blog-articles
<x-blog-article template="summary|complete">
<x-value key="title"></x-value>
View dabblet.css
border: solid 1px black;
border-radius: 15px;
View gist:5131052
heartBeat = new Task(() =>
while (true)
string token = "token-" + _nextHeartbeatId++;
_session.RequestHeartbeat(new HeartbeatRequest(token),
() => Console.WriteLine("Successfully requested heartbeat: " + token),
failureResponse => { throw new Exception("Failed"); });
You can’t perform that action at this time.