Skip to content

Instantly share code, notes, and snippets.

@jessecravens
jessecravens / gist:c6106e89e3335d5a657a
Last active August 29, 2015 14:08
Ember.js Workshop (Future of Web Apps 2014)

Ember.js Workshop (Future of Web Apps 2014)

Jesse Cravens

Jesse is a principal web engineer at frog where he works with the world’s leading companies, helping them to design, engineer, and bring to market meaningful products and services. He possesses a deep background in web application development, and has recently been focusing on single page web application architecture, the mobile web, and HTML5. Jesse’s first book, HTML5 Hacks, has been translated into multiple languages including Chinese and Japanese, and he has spoken internationally at conferences such as SXSW Interactive, Fluent Conf, Future Insights, Code PaLOUsa, and Øredev.

He previously held senior development and technical management positions at USAA, leading a team of mobile application developers in the planning, designing, development, testing, implementation and maintenance of USAA’s industry leading iOS, Android, Blackberry, and mobile web applications for USAA’s 8 million members deployed worldwide.

Jesse holds a B.A. in Art f

@jessecravens
jessecravens / rmr-ember.md
Last active August 29, 2015 14:06
Rocky Mountain Ruby Ember.js Workshop

Ember.js Workshop (RMR 2014)


Schedule

  8:00 AM - 9:00 AM: Part 1 - Lessons 1-3
  9:00 AM - 10:00 PM: Part 1 - Lessons 4-7

Break

@jessecravens
jessecravens / ember-workshop.md
Last active August 29, 2015 14:02
Ember.js Workshop - Future Insights 2014

Ember.js Workshop (Future Insights 2014)

Jesse Cravens

Jesse is a principal web engineer at frog where he works with the world’s leading companies, helping them to design, engineer, and bring to market meaningful products and services. He possesses a deep background in web application development, and has recently been focusing on single page web application architecture, the mobile web, and HTML5. Jesse’s first book, HTML5 Hacks, has been translated into multiple languages including Chinese and Japanese, and he has spoken internationally at conferences such as SXSW Interactive, Fluent Conf, Future Insights, Code PaLOUsa, and Øredev.

He previously held senior development and technical management positions at USAA, leading a team of mobile application developers in the planning, designing, development, testing, implementation and maintenance of USAA’s industry leading iOS, Android, Blackberry, and mobile web applications for USAA’s 8 million members deployed worldwide.

Jesse holds a B.A. in Art from

$(function() {
var map;
var info = $('#infobox');
var doc = $(document);
var tinyIcon = L.Icon.extend({
options: {
shadowUrl: '../vendor/leaflet/assets/marker-shadow.png',
iconSize: [25, 39],
$(function() {
// TODO POSSIBILITIES
//
// Add in new marker icons - based on nerdType
// Obviously add a nerdType to profile
//
// Kill listener after first set of data is passed in sendData.
// Change the timing of the listener based on $.now() - emit
//
@jessecravens
jessecravens / index.js
Created November 26, 2012 22:18
NodeJS Hacks - Streams - data pipe() flow
exports.example5= function(req, res){
// Set both readable and writable in constructor.
var NopStream = function () {
this.readable = true;
this.writable = true;
};
// Inherit from base stream class.
require('util').inherits(NopStream, require('stream'));
@jessecravens
jessecravens / index.js
Created November 26, 2012 22:16
NodeJS Hacks - Streams - Web
exports.example0 = function(req, res){
var http = require('http'),
fs = require('fs'),
util = require('util');
// Get html5hacks.com
require('http').get("http://html5hacks.com/", function(response) {
// The callback provides the response readable stream.
@jessecravens
jessecravens / index.js
Created November 26, 2012 18:54
NodeJS Hacks - Streams - Mp3
exports.example2 = function(req, res){
var http = require('http'),
fs = require('fs'),
util = require('util');
var mp3File = __dirname + "/../TRB_9.21.02_Manatee.mp3";
var stat = fs.statSync(mp3File); // we need some info about the file size
res.writeHead(200, {
@jessecravens
jessecravens / index.js
Created November 26, 2012 18:32
NodeJS Hacks - Streams
exports.example1 = function(req, res){
var fs = require('fs');
//Open a file as a readable stream
var readStream = fs.ReadStream(__dirname + "/../in.txt");
readStream.setEncoding('ascii'); // This is key; otherwise we'd be using buffers
var writeStream = fs.createWriteStream(__dirname + "/../out.txt");
@jessecravens
jessecravens / echo-websocket.html
Created November 25, 2012 05:45
O'Reilly HTML5 Hacks Chapter 9 - Connectivity - Hack #70
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>WebSocket Test</title>
<script language="javascript" type="text/javascript">
WebSocketDemo = function(){
return {