Skip to content

Instantly share code, notes, and snippets.

View lefnire's full-sized avatar

Tyler Renelle lefnire

View GitHub Profile
{
"name": "habitrpg",
"version": "0.0.0-150",
"dependencies": {
"derby": {
"version": "0.3.13",
"from": "git://github.com/lefnire/derby#habitrpg",
"dependencies": {
"dom-shim": {
"version": "0.1.1"
@lefnire
lefnire / gist:4969169
Created February 16, 2013 23:20
ical export
BEGIN:VCALENDAR
PRODID:-//Tri Tech Computers//node-icalendar//EN
VERSION:2.0
BEGIN:VEVENT
DTSTAMP:20130216T231505Z
UID:338328e3-3abe-4ab2-ad5a-4ede267959e4
SUMMARY:Test Event 2
DTSTART;VALUE=DATE:20130216
END:VEVENT
BEGIN:VEVENT

As the proud first DerbyJS website to attempt scaling, here are the lessons learned.

##Racer vs Multi-Process PaaSs Racer doesn't yet support horizontal-scaling as most PaaSs allows (via multiple processes), but vertical-scaling only However, resources low (500mb - 1gb ram, though spiked 100% cores - want multi)

##.set() frequncy ##up racer.set('bundleTimeout') ##off-site mongo ##nginx

@lefnire
lefnire / gist:4457396
Last active December 10, 2015 15:58
Response to my rant
Response to the rant (with formatting): https://gist.github.com/64f15ecc13fa1af83f82
I've tested out Derby and Meteor and I can't agree with lefnire.
Firstly, I'm the developer of one of the only in production (?) Meteor site that I know of (I've asked around for others but didn't get much of an answer). http://anonkun.com
Time from idea to launch was 10 days.
Before deciding which framework I'm going to go with, both Derby and Meteor were investigated along with a host of other frameworks. Derby isn't bad, but...
@lefnire
lefnire / gist:4264168
Created December 12, 2012 01:51
derby-charts v mongodb
$ npm start
> [email protected] start /Users/lefnire/Dropbox/Sites/personal/lever/social-data
> NODE_ENV=test node example/server.js
Error requiring server module from `/Users/lefnire/Dropbox/Sites/personal/lever/social-data/example/lib/server`
/Users/lefnire/Dropbox/Sites/personal/lever/social-data/example/node_modules/derby/lib/derby.server.js:43
throw e;
^
@lefnire
lefnire / gist:4125300
Created November 21, 2012 15:06
twitter nock output
Tylers-MacBook-Pro-Retina:nock-test lefnire$ npm test
> mocha test/twitter.mocha.js
Twitter
◦ pulls user data: matching GET https://api.twitter.com:443/1.1/users/lookup.json?user_id=&screen_name=lefnire * to GET https://api.twitter.com:443/1.1/users/lookup.json?user_id=&screen_name=lefnire: false
matching GET https://api.twitter.com:443/1.1/users/lookup.json?user_id=&screen_name=lefnire * to GET https://api.twitter.com:443/1.1/statuses/user_timeline.json?screen_name=lefnire: false
matching GET https://api.twitter.com:443/1.1/users/lookup.json?user_id=&screen_name=lefnire * to GET https://api.twitter.com:443/1.1/friends/ids.json?user_id=13560752&cursor=-1: false
matching GET https://api.twitter.com:443/1.1/users/lookup.json?user_id=&screen_name=lefnire * to GET https://api.twitter.com:443/1.1/followers/ids.json?user_id=13560752&cursor=-1: false
matching GET https://api.twitter.com:443/1.1/users/lookup.json?user_id=&screen_name=lefnire * to GET https://api.twitter.com:443/1.1/users/lookup.json?user_id=XX
@lefnire
lefnire / gist:4100661
Created November 17, 2012 22:09
mikeal/request with LinkedIn
var request = require('request')
, qs = require('querystring')
// LinkedIn Specifics
, apiHost = 'https://api.linkedin.com/v1'
, oauth = {
consumer_key: process.env.LINKEDIN_API_KEY
, consumer_secret: process.env.LINKEDIN_SECRET_KEY
, token: process.env.LINKEDIN_DEFAULT_TOKEN
@lefnire
lefnire / gist:4073148
Created November 14, 2012 16:31
install private npm module on heroku
// see https://npmjs.org/doc/json.html and http://stackoverflow.com/questions/10869796/npm-private-git-module-on-heroku#comment18161791_10869796
"dependencies" : {
"my-module" : "git+https://my_username:[email protected]/my_bitbucket_account/my_repo.git"
}
@lefnire
lefnire / gist:4047269
Created November 9, 2012 18:14
tmars dribbble output
/**
profile:
{ followers_count: 36,
website_url: 'http://www.marshall.io',
comments_count: 24,
name: 'Tim Marshall',
comments_received_count: 16,
likes_count: 703,
id: 44656,
username: 'tmars',
@lefnire
lefnire / gist:4026626
Created November 6, 2012 18:40
Derby Community Info (Workflowy Export)
Derby Community Info
- Projects
- Codeparty (Brian & Nate)
"https://github.com/codeparty"
- Derby
"https://github.com/codeparty/derby"
- Derby Examples
"https://github.com/codeparty/derby-examples"
- Racer