Skip to content

Instantly share code, notes, and snippets.

View jxson's full-sized avatar

Jason Campbell jxson

View GitHub Profile
@jxson
jxson / jsla-01-31-2013.md
Last active December 10, 2015 22:38
JSLA Thursday Jan 31st, 2013

Hello Everyone,

We survived the holidays and have a pretty special event lined up for this month. This month's JSLA will be at Cross Campus in Santa Monica Thursday January 31st. We have two great local presenters, John Bender and Ron Evans as well as an out of town node.js expert Mike Brevoort.

Please RSVP if you plan on attending: http://js.la

JavaScript Made Simple

Presented by: Ron Evans

@jxson
jxson / image-inside.css
Created December 11, 2012 00:51
using the image shortcut inside a media query
@media screen and (min-width: 768px) {
.foo {
background-image: url("thing-that-needs-retina.jpg");
}
@media all and (-webkit-min-device-pixel-ratio: 1.5) {
{
background-image: url("thing-that-needs-retina@2x.jpg");
-webkit-background-size: 100px 100px;
-moz-background-size: 100px 100px;
background-size: 100px 100px;
@jxson
jxson / .bash_profile
Created December 5, 2012 19:25
simple dot files
# .bash_profile is executed for login shells, while .bashrc is executed for
# interactive non-login shells.
# http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.html
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
@jxson
jxson / dhs-error.js
Created December 4, 2012 23:05
Server for testing res.server.close() error using domain-http-server
var http = require('http')
, dhs = require('domain-http-server')
http.createServer(function (req, res) {
dhs(req, res, { close: true, callback: errorHandler })
throw new Error('This should trigger `errorHandler`')
}).listen(1337)
function errorHandler(err){
@jxson
jxson / jsla-oct-29-2012.md
Created November 14, 2012 06:31
JSLA Nov 29th, 2012

Hello Everyone,

This month's JSLA will be Thursday November 29th (After Tahnks Giving) hosted at Two Bit Circus (http://twobitcircus.com) near downtown and sponsored by EdgeCast (http://www.edgecast.com).

Please RSVP if you plan on attending so we know how much food and drink to get: http://js.la

Our planned talks are:

Sandboxing Untrusted Code in Node.js

@jxson
jxson / hal-plugin.js
Created October 18, 2012 23:23
HAL Chai plugin
// http://chaijs.com/guide/plugins/
module.exports = function(chai, utils){
var Assertion = chai.Assertion
, assert = chai.assert
Assertion.addProperty('resource', function(){
var doc = this._obj
, message = utils.flag(this, 'message')
new Assertion(doc, message).to.be.an('object')
@jxson
jxson / jsla-oct-25th-2012.md
Created October 8, 2012 05:44
JSLA Oct 25th, 2012

Hello Everyone,

This month's JSLA will be Tuesday October 25th at the newly opened Hub in Downtown Los Angeles and sponsored by Edge Cast. After the talks we are planning on heading over to ### for drinks.js.

If you plan on attending please make sure to RSVP so we know how much food to get: http://js.la

Our planned talks are:

Top 10 Secret Weapons For Front-End Development

@jxson
jxson / jsla-09-25-2012.md
Created September 14, 2012 05:22
JSLA Sept 25th, 2012

Hello Everyone,

Next week's JSLA will be Tuesday September 25th, hosted at Cross Campus in Santa Monica with food and drinks sponsored by HTML5 Dev Conf (More info below). After the talks we are planning on heading next door to the Bodega Wine Bar to hang out for drinks.js.

If you plan on attending please make sure to RSVP so we know how much food to get: http://js.la

Our two planned talks are:

Wheatley

@jxson
jxson / README.md
Created August 24, 2012 06:44 — forked from adammw/README.md
Node.js for Raspberry Pi

Node.js for Raspberry Pi

This is a work in progress - it may not work!

Pre-built binaries

Raspbian (hard-float)

v0.8.6-pre (adammw/node@3a42578d477249cc8851cd76cfb4fa4cb88ab0a0)

@jxson
jxson / jsla-july-26th-2012.md
Created July 13, 2012 23:22
JSLA July 26th

Hello Everyone,

Today we are announcing the July 26th JSLA meet up. City Grid Media is hosting us in their West Hollywood office space. We had the very first JSLA here and are excited to return. They have a limited amount of space for a group like ours so RSVPS are required in order to ensure we don't overflow JS developers onto the Sunset Strip.

If you plan on attending make sure to RSVP: http://js.la

There are two talks planned:

JS To Rule Them All