Skip to content

Instantly share code, notes, and snippets.

@CocaColaCat
CocaColaCat / gist:fbc36659e9de3f2f1bef
Last active September 17, 2015 08:59 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@CocaColaCat
CocaColaCat / challenge-1-7.js
Created November 1, 2012 11:34 — forked from codeschool-courses/challenge-1-7.js
Anatomy of Backbone 1-7
var Appointment = Backbone.Model.extend({});
var appointment = new Appointment();
appointment.set('title', 'My knee hurts');
var AppointmentView = Backbone.View.extend({
render: function(){
$(this.el).html('<li>' + this.model.get('title') + '</li>');
}
});
var appointmentView = new AppointmentView({model: appointment});