Skip to content

Instantly share code, notes, and snippets.

Avatar

Jason Campbell jxson

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

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 Dec 11, 2012
using the image shortcut inside a media query
View image-inside.css
@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 Dec 5, 2012
simple dot files
View .bash_profile
# .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 Dec 4, 2012
Server for testing res.server.close() error using domain-http-server
View dhs-error.js
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 Nov 14, 2012
JSLA Nov 29th, 2012
View jsla-oct-29-2012.md

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 Oct 18, 2012
HAL Chai plugin
View hal-plugin.js
// 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')
View jsla-oct-25th-2012.md

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 Sep 14, 2012
JSLA Sept 25th, 2012
View jsla-09-25-2012.md

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 Aug 24, 2012 — forked from adammw/README.md
Node.js for Raspberry Pi
View README.md

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)

View jsla-july-26th-2012.md

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

You can’t perform that action at this time.