⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Import | |
*/ | |
import Promise from 'bluebird'; | |
import afs from '../lib/asyncfs'; | |
import path from 'path'; | |
import extend from 'extend'; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TableRowView backbone.View.extend({}) | |
TableView = backbone.View.extend({ | |
TableRowViewClass: TableRowView, | |
render: function() { | |
this.collection.forEach(function(model) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addContactId: function( contactId ) { | |
var contactIds | |
contactIds = this.get( 'contactIds' ) | |
if( _.indexOf(contactIds, contactId) == -1 ) { | |
contactIds.push( contactId ) | |
this.set( 'contactIds', contactIds.slice() ) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<field name="antall"> 1 | |
<field name="???"> Melding | |
<field name="antall"> 2 (eller alle antall større en 1) | |
<field name="???"> Meldinger |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var defaultChartOptions = { | |
xax: { | |
degrees: 45, | |
type: "default" | |
}, | |
styles: { | |
colors: { | |
top: "red", | |
bottom: "blue" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ApplicationManager.prototype.importDB = function( callback ) { | |
async.auto({ | |
flushDB: bind( this.flushDB, this ), | |
readSQLFromSnapshot: bind( fs.readFile, fs, this.currentApplicationSnapshot.getDBExportPath(), 'utf8' ), | |
insertSql: ['flushDB', 'readSQLFromSnapshot', bind(this.insertSql, this)] | |
}, | |
callback) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Module dependencies. | |
*/ | |
var express = require('express'), | |
http = require('http'), | |
path = require('path'), | |
api = require('./apps/api'), | |
client = require('./apps/client'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lolser:appserver gorillatron$ jitsu deploy | |
Password: | |
info: Welcome to Nodejitsu gorillatron | |
info: jitsu v0.9.8 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing application dependencies in node app | |
warn: Local package version appears to be old | |
warn: The package.json version will be incremented automatically | |
warn: About to write /Users/gorillatron/progg/Mayo/appserver/package.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |