Skip to content

Instantly share code, notes, and snippets.


Jason Campbell jxson

View GitHub Profile
View reset.styl
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, input, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td
margin 0
jxson /
Last active Dec 19, 2015
JSLA announcement for July 25th, 20013

This month's JSLA will be at HUGE (Mid-City/Miracle Mile), Thursday July 25th @ 7pm. There will be presentations on gelocation based music discovery and managing binary data in the browser!

Please make sure to RSVP, space is limited:

Discovering Music Through Geo Location

Presented by: Chris Mendez

In 2012, the USC Radio online team set out to create a new type of music discovery app centered around geo location. After months of imagining, planning, developing and iterating, the team finally released Geotunes, an HTML5-based app that provides users with a new way to learn about the relationships between songs and their geographical surroundings. The presentation will take a birds-eye view of the product lifecycle and share what it took to become one of the first 100 apps on the Spotify app ecosystem.


Hello Everyone,

Hoped you enjoyed last month's JSLA. In case you missed it we uploaded the videos to our vimeo account.

This month's JSLA will be a beer.js on June 27th at Angel City Brewery in downtown LA. We will not have the usual formal talks this month but if you are working on something exciting and want to show it off feel free to bring your laptop!

Thats all for now, see you on the 27th.

  • The JSLA Team
jxson / decorate.js
Created May 21, 2013
Example req helpers for content negotiation.
View decorate.js = function(type){
// section 7.2.1
var ct = req.headers['content-type'] || 'application/octet-stream'
, mime = require('mime')
, index = ct.indexOf(';')
if (index > -1) ct = ct.substring(0, index)
'application/x-www-form-urlencoded': [ 'form' ]

And back to the East side,

This month's JSLA will be at The Hub (in Downtown LA), Thursday April 25th @ 7pm. There will a presentation on AMD style loaders and component systems as well as a talk on The History of Women in Computing.

Don't forget to RSVP:

The History of Women in Computing

Presented by: Jessica Suttles

jxson / walk.js
Created Mar 16, 2013
might make this into a module someday, it walks a dir and emits stats for files and dirs. Events: `file`, `dir`, `error`, `end`
View walk.js
var fs = require('graceful-fs')
, path = require('path')
, EE = require('events').EventEmitter
, glob = require('glob')
module.exports = function(dir){
return Object.create(EE.prototype, { walk: { value: walk }
, read: { value: read }
, finish: { value: finish }

It's our birthday!

This month's JSLA will be at the Google office in Venice, Thursday March 28th @ 7pm. There will a presentation on browserify v2 from @substack himself, and a short JavaScript Made Simple talk on arrays. Don't forget to RSVP, Google won't let you in if you're not on the list.



Our sponsor this month is M-go. They are hiring for several front-end, mobile, and devops positions:

jxson /
Last active Dec 13, 2015
This month's JSLA will be at The Hub LA in Downtown Los Angeles, Thursday February 28th @ 7pm

Heya JSLAers,

It's that time again: this month's JSLA will be at The Hub LA in Downtown Los Angeles, Thursday February 28th @ 7pm. We got a good mix of Node.js, robotics, and some seriously high quality front-end stuff. We are also starting the JavaScript Made Simple series this month.

Make sure to RSVP if you plan on attending:

Fluent Conf

The folks behind the O'Reilly Fluent Conference are giving us a special discount. Make sure to use the discount code JSLA20 when you register for 20% off. The conf is May 28th - 30th, visit the Fluent Conf site for more details.

jxson /
Last active Dec 13, 2015
Workbench Programming Series :: By the Hub

Tech Salon

Working with The Hub LA we have put together a three month mentorship series to help some of their new entrepreneurs be a little more fluent with development practices and terminology. The requirements for some in the program vary from needing guidance on how to best work with their developers to knowing when to hire vs. using contractors, to user acquisition, etc.

As mentors we will provide guidance and product feedback on high-level development problems like how to communicate with developers, manage timelines, or even gice second opinions on development decisions that they might be fuzzy on. The kind of things that are literally second nature to seasoned developers like us but can provide massive amounts of confusion to the uninitiated.


The founders are 6 companies (12 people total) who are Hub LA members considered as "tech for change" companies. They are looking to build companies that help people donate extra balances on gift cards to charities, or provide educational resour

jxson /
Created Jan 16, 2013
DevOps Day LA lightening talk proposal

Setting up a node.js git push deployment on EC2

For OKCupid Labs' project we decided to roll our own devops on an EC2 instance for our web facing node.js app. It took some extra work but using some classic tools like monit we were able to have a stable place for deployment which also afforded some nice touches like deployment via git. I'll walk through using upstart, monit, syslog -> loggly (json logging), mosh, and git post-recieve hooks with examples of configs and things that bit me along the way.

You can’t perform that action at this time.