Install Package Control for easy package management.
- Open the console with
Ctrl+`
- Paste in the following:
{ | |
"ecmaVersion": 6, | |
"libs": ["browser"], | |
"loadEagerly": [ | |
"app/**/*.js" | |
], | |
"plugins": { | |
"doc_comment": { | |
"fullDocs": true | |
}, |
# zsh script checks first if there were any commits done | |
# by author yesterday. If there were, return those. If | |
# there weren't, look for all commits since last Friday | |
# at midnight as it may have been a weekend. | |
# | |
# Use your name in the --author for all commands | |
gitstandup() { | |
if [ -z "$(git log --all --pretty=format:'* %s' --no-merges --reverse --author=Justin --since=yesterday.midnight)" ]; then | |
git log --all --pretty=format:'* %s' --no-merges --reverse --author=Justin --since=last.friday.midnight; |
#!/usr/bin/env ruby | |
# Colorize string | |
class String | |
def colorize(color_code) | |
"\e[#{color_code}m#{self}\e[0m" | |
end | |
end | |
class Colors |
# user colors | |
if [ $UID -eq 0 ]; then USERCOLOR="red"; else USERCOLOR="green"; fi | |
# box name | |
function box_name { | |
[ -f ~/.box-name ] && cat ~/.box-name || echo $HOST | |
} | |
# workdir | |
local current_dir='${PWD/#$HOME/~}' |
import { Injectable, Inject } from '@angular/core'; | |
import { Observable } from 'rxjs/Observable'; | |
import { ReplaySubject } from 'rxjs/ReplaySubject'; | |
import { DOCUMENT } from '@angular/platform-browser'; | |
@Injectable() | |
export class LazylibsService { | |
private chartJs?: ReplaySubject<any>; |
Linux - create "Default (Linux).sublime-mousemap" in ~/.config/sublime-text-3/Packages/User | |
Mac - create "Default (OSX).sublime-mousemap" in ~/Library/Application Support/Sublime Text 3/Packages/User | |
Win - create "Default (Windows).sublime-mousemap" in %appdata%\Sublime Text 3\Packages\User | |
[ | |
{ | |
"button": "button1", | |
"count": 1, | |
"modifiers": ["super"], | |
"press_command": "drag_select", |
Install Package Control for easy package management.
Ctrl+`
var express = require('express'); | |
var cookieParser = require('cookie-parser'); | |
var session = require('express-session'); | |
var flash = require('express-flash'); | |
var handlebars = require('express-handlebars') | |
var app = express(); | |
var sessionStore = new session.MemoryStore; | |
// View Engines |