Skip to content

Instantly share code, notes, and snippets.

View gist:4963275
{
"common": {
"term_24bit_colors": true,
"dividers": {
"left": {
"hard": "",
"soft": ""
},
"right": {
"hard": "",
View portland-2013-speaker-qa.md

You're Invited!

Have you been thinking about proposing a talk for jQuery Portland 2013? You should be! We're looking to put together a roster of speakers that can bring a diverse set of experiences together to create a program that goes above and beyond just what's new in jQuery.

A lot of folks convince themselves not to submit a talk because they're worried their idea "isn't on topic" or that "someone else 'better' will surely do that." That's why Rebecca Murphey (@rmurphey) and I (@ajpiano) are hosti

View portland-2013-speaker-qa.md

You're Invited!

Have you been thinking about proposing a talk for jQuery Portland 2013? You should be! We're looking to put together a roster of speakers that can bring a diverse set of experiences together to create a program that goes above and beyond just what's new in jQuery.

A lot of folks convince themselves not to submit a talk because they're worried their idea "isn't on topic" or that "someone else 'better' will surely do that." That's why Rebecca Murphey (@rmurphey and I (@ajpiano are hosting a live Q&A for people who are thinking about speaking but

View gist:4360902
App.Router.map({
'/': 'home',
'/foo/:bar': 'fooBar',
'/route/with/nested/routes': {
handler: 'handler',
routes: {
'/moar/routes/plz': 'boom'
}
}
View gist:4236371
define([
'jquery',
'util',
'underscore',
'rsvp'
], function( $, util, _, RSVP ) {
var SearchResults = function( el ) {
if ( !(this instanceof SearchResults)) {
return new SearchResults( el );
}
View gist:4236356
define([
'fixtures/searchData',
'jquery',
'searchResults'
], function( data, $, SearchResults ) {
suite('SearchResults', function() {
var ul;
setup(function() {
View gist:4236349
define([
'jquery',
'underscore',
'util',
'searchForm',
'searchResults',
'data'
], function( $, _, util, SearchForm, SearchResults, SearchData ) {
$(function() {
View gist:4235968
define([
'squire',
'jquery',
'fixtures/searchData',
'fixtures/templates'
], function( Squire, $, data, templates ) {
var injector = new Squire();
injector
.mock( 'util', {
View gist:4031632
define([ 'jquery' ], function($) {
var MyPlugin = function(domNode) {
$(domNode).html('foo');
};
$.fn.myPlugin = function() {
new MyPlugin( this );
};
return MyPlugin;
@rmurphey
rmurphey / filter_subdir.sh
Created Oct 21, 2012 — forked from cowboy/filter_subdir.sh
Make a new repo from a subdirectory of an original repo
View filter_subdir.sh
# Please don't just RUN this. Do it step-by-step.
user=bocoup
orig_repo=training
new_repo=training-jquery
subdir=jquery-conference
# Pull down the original repo.
git clone git@github.com:$user/$orig_repo.git $new_repo
# Repo, I'm in you.