start new:
tmux
start new with session name:
tmux new -s myname
| #!/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>; |
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 |
If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser