Skip to content

Instantly share code, notes, and snippets.

View BruceHubbard's full-sized avatar

Bruce Hubbard BruceHubbard

View GitHub Profile
PLEASE NOTE THE NEW LOCATION! We'll be meeting at Cintrifuse and the Brandery's new location Union Hall (1313 Vine St.). We also have a food sponsor for this meeting (thank you Differential!) so we'll be providing pizza.
We're going to have three talks:
Ry Walker will be giving a brief intro to Meteor talk. Heard of Meteor but don't know much about it? Then this is your talk. Come and learn about the awesomeness of Meteor.
Bruce Hubbard will be giving a brief talk about new JavaScript ES2015 language features. There has been a huge effort lately to compile other languages into JavaScript (Coffeescript, TypeScript, etc) mostly because of perceived flaws in the JavaScript language. ES2015 is a great leap forward for JavaScript and helps fix some of the long complained about quirks and missing language features.
Josh Owens will be giving a brief talk about securing a Meteor application. While running Meteor Club and helping others with their Meteor applications Josh has seen a lot of stupid securit
rec test.wav silence 1 0.50 0.1% 1 00:02 0.1%
@BruceHubbard
BruceHubbard / _.md
Created August 4, 2013 18:44
Tributary inlet
@BruceHubbard
BruceHubbard / _.md
Created July 26, 2013 12:40
Tributary inlet
@BruceHubbard
BruceHubbard / _.md
Created July 25, 2013 19:10
Tributary inlet
@BruceHubbard
BruceHubbard / _.md
Created March 18, 2013 13:19
Tributary inlet
//jQuery
$('#foo').addClass('bar');
$('.foo').addClass('bar').removeClass('list').toggleClass('highlight');
//DOM
//classList makes this easy!
document.querySelector("#foo").classList.add('bar');
//holy crap that is a lot of typing for a simple example!
@BruceHubbard
BruceHubbard / _.md
Created January 25, 2013 20:28
Tributary inlet
@BruceHubbard
BruceHubbard / final.js.md
Created December 13, 2012 16:23
Code for my knockout scoring example
var week = {
  updateGame: function(game) {
		var gameToUpdate = _.find(this.games, function(g) { return g.id === game.id; });

		if(gameToUpdate) {
			if(game.awayTeam) gameToUpdate.awayTeam.total(game.awayTeam.total);
			if(game.homeTeam) gameToUpdate.homeTeam.total(game.homeTeam.total);
		}
	},
@BruceHubbard
BruceHubbard / nokogiri.rb
Created November 27, 2012 16:53
Nokogiri Examples
Nokogiri::HTML.parse(open(url)).css('.tn a').collect {|img| img["href"]}
#open(url) - opens and returns an html document
#css('selector') is just like jquery except server side. It returns a (ruby equivalent of a) linq-like enumerable
#collect is the same as .NET's select function
#So this one line when I set url to a Craigslist listing detail page will open that page and return an array of images for that listing.