Install Package Control for easy package management.
- Open the console with
Ctrl+` - Paste in the following:
| # 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>; |
Install Package Control for easy package management.
Ctrl+`
| 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", |
| 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 |
This is a collection of the most common commands I run while administering Postgres databases. The variables shown between the open and closed tags, "<" and ">", should be replaced with a name you choose. Postgres has multiple shortcut functions, starting with a forward slash, "". Any SQL command that is not a shortcut, must end with a semicolon, ";". You can use the keyboard UP and DOWN keys to scroll the history of previous commands you've run.
http://www.postgresql.org/download/linux/ubuntu/ https://help.ubuntu.com/community/PostgreSQL