When possible we try to group changes.
Add predefs to .jshintrc
// | |
// Broccoli may be easier to understand if you think of it functionally | |
// | |
// This is an incomplete Brocfile.js! Not even sure if it's valid. | |
// Adapted from http://ampersate.com/getting-started-with-broccoli-and-emberjs | |
// | |
// Note: This would probably look nicer in CoffeeScript | |
// Note: This would probably look best in ClojureScript | |
// |
file changed models/media.js | |
Build successful - 7257ms. | |
Slowest Trees | Total | |
-------------------------------+---------------- | |
Remover | 1672ms | |
LessCompiler | 1377ms | |
JSHint - App | 1226ms | |
Remover | 1189ms |
// Brocfile.js | |
// ember-simple-auth <= v0.5.3 | |
app.import('bower_components/ember-simple-auth/amd/ember-simple-auth.js', { | |
exports: { | |
'ember-simple-auth/setup': ['default'], | |
'ember-simple-auth/authenticators/base': ['default'], | |
'ember-simple-auth/authorizers/base': ['default'], | |
'ember-simple-auth/mixins/application_route_mixin': ['default'], | |
'ember-simple-auth/mixins/authenticated_route_mixin': ['default'], |
import subprocess | |
import sublime, sublime_plugin | |
import os | |
PLUGIN_FOLDER = os.path.dirname(os.path.realpath(__file__)) | |
SCRIPT_PATH = PLUGIN_FOLDER + '/node_modules/jsfmt/lib/run.js' | |
NODE_PATH = '/usr/local/bin/node' # Change to your node location (How can we `/usr/bin/env node` here?) | |
class FormatJavascript(sublime_plugin.TextCommand): | |
def run(self, edit): |
Ember CLI expects folders to be a certain way, particularly the app
folder. You may choose to refactor, or you may choose to keep your own structure. The following is an example of a Broccoli configuration to do so:
#!/bin/bash | |
# See http://www.ember-cli.com/#using-modules | |
# Assumes your ember JS is in app/js/ | |
# | |
# TODO: | |
# - make ember js src directory a variable | |
# - make error to search for variable | |
# - make replacement string variable | |
# - abstract into function |
{ | |
/* Keybindings for emacs emulation. Compiled by Jacob Rus. | |
* https://www.hcs.harvard.edu/~jrus/site/cocoa-text.html | |
* | |
* Place in ~/Library/KeyBindings/DefaultKeyBinding.dict | |
* | |
* This is a pretty good set, especially considering that many emacs bindings | |
* such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and | |
* perhaps a few more, are already built into the system. | |
* |
NodeJS OC Talk History | |
====================== | |
2014 | |
---- | |
September 10, 2014 | |
"Node.js and Docker in Production" | |
Jason and Jeff, Zillow | |
Host: Zillow |
[ | |
{ "keys": ["tab"], "command": "insert_best_completion", "args": {"default": "\t", "exact": true} }, | |
{ "keys": ["tab"], "command": "insert_best_completion", "args": {"default": "\t", "exact": false}, | |
"context": | |
[ | |
{ "key": "setting.tab_completion", "operator": "equal", "operand": true } | |
] | |
}, | |
{ "keys": ["tab"], "command": "replace_completion_with_next_completion", "context": | |
[ |