View mercury-component.js
1 2 3 4 5 6 7 8 9 10
 
var mercury = require('mercury');
var h = mercury.h;
 
module.exports = create;
module.exports.render = render;
 
function render(state) {
return h({}, [
//...
View value-event-event.js
1 2 3 4 5 6 7 8 9 10
var extend = require('xtend');
 
module.exports = SinkEventHandler;
 
function SinkEventHandler(sink, data) {
if (!(this instanceof SinkEventHandler)) {
return new SinkEventHandler(sink, data);
}
 
this.sink = sink;
View mercury-component.js
1 2 3 4 5 6 7 8 9 10
 
var h = require('mercury').h;
var css = require('./index.css');
var insert = require('insert-css');
 
module.exports = function component(state) {
insert(css);
 
return h('.foo')
}
View gist:a39802d00ed04d1c36c1
1 2 3 4 5 6 7 8 9 10
function submit(sink, data) {
if (!(this instanceof submit)) {
return new submit(sink, data)
}
 
this.sink = sink
this.data = data
this.id = sink.id
this.type = 'submit'
}
View 0_reuse_code.js
1 2
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View keybase.md

Keybase proof

I hereby claim:

  • I am jxson on github.
  • I am jxson (https://keybase.io/jxson) on keybase.
  • I have a public key whose fingerprint is BE1D B681 AC7A C224 A61A 8A3A 7FA9 7040 C765 43B3

To claim this, I am signing this object:

View reset.styl
1 2 3 4 5 6 7 8 9 10
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
View mailer.md

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: http://js.la

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.

View jsla-june-27th-2013.md

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
View decorate.js
1 2 3 4 5 6 7 8 9 10
req.is = function(type){
// http://www.w3.org/Protocols/rfc2616/rfc2616.txt 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)
 
mime.define({
'application/x-www-form-urlencoded': [ 'form' ]
Something went wrong with that request. Please try again.