Skip to content

Instantly share code, notes, and snippets.

View weekes's full-sized avatar

Marcel Weekes weekes

View GitHub Profile

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
@weekes
weekes / gist:45b740c02f5cb6fac84c
Created February 7, 2015 00:48
Estimate.json
{
"id": 77412,
"created_at": "2015-02-07T00:16:24.949Z",
"action": "create",
"object": "estimate",
"data": {
"id": 1,
"title": "Replace fence",
"state": "approved",
"number": 1,
@weekes
weekes / customers.new.controller.js
Last active August 29, 2015 14:21
Create customer and contact
function activate() {
// build the new customer / contact
vm.customer = Models.Customer.build(_writeManager);
vm.contact = Models.Contact.build(_writeManager);
// fetch the contact and other required values
// todo: switch to Company.currentUser
// https://github.com/BreezeWorks/WebClient/commit/4153a2d0bbd7a787fa763d5c9bdb76c6715ccbbc
// vm.user = Models.Company.currentUser(_readManager);
vm.user = Models.User.find(_readManager, sessionService.getUserId());