Skip to content

Instantly share code, notes, and snippets.

View hparra's full-sized avatar

H. G. Parra hparra

View GitHub Profile
@hparra
hparra / Brocfile.js
Last active August 29, 2015 14:07
Broccoli may be easier to understand if you think of it functionally
//
// 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
//
@hparra
hparra / gist:f64c9706abb01a09691e
Created October 6, 2014 18:23
Ember CLI makes me sad
file changed models/media.js
Build successful - 7257ms.
Slowest Trees | Total
-------------------------------+----------------
Remover | 1672ms
LessCompiler | 1377ms
JSHint - App | 1226ms
Remover | 1189ms
@hparra
hparra / fulcrum.console.md
Last active August 25, 2023 19:29
fulcrum.console Conversion Notes

fulcrum.console Conversion Notes

When possible we try to group changes.

Root

dotfiles

Add predefs to .jshintrc

@hparra
hparra / Brocfile-ember-simple-auth.js
Created September 29, 2014 17:39
ember-cli Brocfile.js app.import for ember-simple-auth <= v0.5.3
// 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):
@hparra
hparra / transitioning-to-ember-cli.md
Last active August 29, 2015 14:06
Transitioning to Ember CLI
@hparra
hparra / import-ember.sh
Last active August 29, 2015 14:06
Add "import Ember from 'ember';" to the top of each file that jshint says needs it
#!/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
@hparra
hparra / DefaultKeyBinding.dict
Last active August 29, 2015 14:06
Global emacs keybindings, including meta
{
/* 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.
*
@hparra
hparra / NodeJSOCTalkHistory.txt
Last active August 29, 2015 14:06
NodeJS OC Talk History
NodeJS OC Talk History
======================
2014
----
September 10, 2014
"Node.js and Docker in Production"
Jason and Jeff, Zillow
Host: Zillow
@hparra
hparra / KeyBindingsUser.json
Created July 17, 2014 20:22
User KeyBindings to reset emacs-style tabs when using Sublemacs
[
{ "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":
[