Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
/** | |
* Workaround to make defining and retrieving angular modules easier and more intuitive. | |
*/ | |
(function(angular) { | |
var origMethod = angular.module; | |
var alreadyRegistered = {}; | |
/** |
#!/usr/bin/env python | |
# | |
# 1. Save this file as `pre-commit` in your local .git/hooks/ directory | |
# 2. Make sure your file is executable `chmod +x pre-commit` | |
# Upon git commit, this script will check your staged files against your eslint ruleset | |
# More flags and options at http://eslint.org/ | |
import os, sys | |
""" |
A small library for padding strings in JavaScript. Marmalade-free.
![NPM version][shield-npm] ![Node.js version support][shield-node] ![Build status][shield-build] ![Code coverage][shield-coverage]
var istanbul = require('browserify-istanbul'); | |
module.exports = function (config) { | |
config.set({ | |
basePath: '../', | |
files: ['src/scripts/**/*.js', 'test/unit/**/*.js'], | |
frameworks: ['browserify', 'mocha', 'chai'], | |
browsers: ['PhantomJS'], // 'Chrome' |
[ | |
{ | |
"class": "sidebar_container", | |
// $base02: #073642 | |
"layer0.tint": [7,54,66], | |
"layer0.opacity": 1.0, | |
"layer0.draw_center": false, | |
"layer0.inner_margin": [0, 0, 1, 0], | |
"content_margin": [0, 0, 1, 0] |
[ // Auto-pair underscores | |
{ "keys": ["_"], "command": "insert_snippet", "args": {"contents": "_$0_"}, "context": | |
[ | |
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, | |
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, | |
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|>|$)", "match_all": true }, | |
{ "key": "preceding_text", "operator": "not_regex_contains", "operand": "[_a-zA-Z0-9_]$", "match_all": true }, | |
{ "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.underscore", "match_all": true } | |
] | |
}, |
//----- The ECMAScript 6 meta object protocol (MOP) implemented in ES5 | |
// This is how getting a property is handled internally. | |
// Double underscore (__) implies internal operation. | |
Object.prototype.__Get__ = function (propKey, receiver) { | |
receiver = receiver || this; | |
var desc = this.__GetOwnProperty__(propKey); | |
if (desc === undefined) { | |
var parent = this.__GetPrototypeOf__(); | |
if (parent === null) return undefined; |
{ | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true | |
}, | |
"plugins": ["react"], | |
"ecmaFeatures": { |