Skip to content

Instantly share code, notes, and snippets.

View brianleroux's full-sized avatar
💚
You are now aware that you are breathing

Brian LeRoux brianleroux

💚
You are now aware that you are breathing
View GitHub Profile
@brianleroux
brianleroux / web-based-diagramming-tools.md
Created September 8, 2012 19:37
I asked about web based diagramming tools on twitter. Ppl answered!
@brianleroux
brianleroux / sched.md
Created July 13, 2012 18:37
pgday schedule
09:00-09:30 ....................... Breakfast and registration
09:30-09:55 ... Andre/Dave ........ Opening remarks
10:00-10:20 ... Matt Kelly ........ Mobile Web Landscape 
10:25-10:40 ... Fil ............... Whats new in PhoneGap 2.0
10:40-11:00 ....................... Break
11:00-11:20 ... Gord .............. CordovaJS 
11:25-11:45 ... Pamela Fox......... 
11:50-12:10 ... James Burke ....... RequireJS and stuff 

12:10-13:10 ....................... Lunch

@brianleroux
brianleroux / nomad-beer-0.0.1.min.md
Created June 27, 2012 23:02
nomad-beer-0.0.1.min.js

WHAT: beerjs

WHY: beer and js: IN MANY PLACES


WHEN: 6:30

WHERE City Beer Store


@brianleroux
brianleroux / postForm.js
Created June 19, 2012 20:38
ghetto quicky for uploading from a multipart file input
var postForm = postForm function(e) {
// throw a canvas in there, YES I KNOW ITS KLUDGY BUSINESS
$('#pics').prepend('<a><canvas id=tmp class=pic width=90 height=90></canvas></a>')
var fd = new FormData()
, xhr = new XMLHttpRequest()
, canvas = $('#tmp')[0]
, f = new FileReader()
@brianleroux
brianleroux / BeerJS.md
Created June 19, 2012 13:56
BeerJS Brooklyn June 20
@brianleroux
brianleroux / quickly.sh
Created June 5, 2012 20:14
apache cordova/phonegap android cli
git clone https://github.com/imhotep/incubator-cordova-android.git
cd incubator-cordova-android
./bin/create2
cd example
ant clean debug install
@brianleroux
brianleroux / hello-cordova.html
Created May 29, 2012 20:42 — forked from purdrew/helloCordova.html
Hello World Cordova
<!DOCTYPE html>
<html>
<head>
<meta http-equiv=Content-Type content=text/html;charset=UTF-8>
<meta name=viewport id=viewport content=width=device-width,height=device-height,initial-scale=1.0,user-scalable=no>
<title>Hello Cordova</title>
</head>
<body>
<h1 id=hello>Initializing...</h1>
var photo = require('./photo')
, app = require('./app')
// GET /api/v1/img ....... list all images
app.get('/api/v1/img', photo.cors, function(req, res) {
photo.thumbs(function(err, photos) {
res.send(photos)
})
})
@brianleroux
brianleroux / s4.js
Created May 24, 2012 14:08
example usage of s4
var photo = require('s4').create(require('s3-config'))
, path = require('path').join(__dirname, 'test.jpg')
photo.save(path, function(err, url) {
if (err) throw new Error('fuuuu')
console.log('saved! the new url is: ' + url)
})
@brianleroux
brianleroux / chrome-remote.sh
Created May 22, 2012 09:34
kick up the chrome remote debugger
#!/bin/sh
adb forward tcp:9222 localabstract:chrome_devtools_remote
open http://localhost:9222