Skip to content

Instantly share code, notes, and snippets.

@ryanlabouve
ryanlabouve / gist:2322528
Created April 6, 2012 19:56
Sublime text keybinding for reversing selecting lines
// Add to 'Default (OSX).sublime-keymap'
// Reverse selected lines.
[
{ "keys": ["super+shift+r"], "command": "permute_lines", "args": {"operation": "reverse"} }
]
@ryanlabouve
ryanlabouve / livereload-aliases.sh
Last active December 14, 2015 00:09
Livereload Aliases
# Livereload Helpers
### reference: http://feedback.livereload.com/knowledgebase/articles/86230-livereload-url-api
## Add current dir to livereload watchlist
alias lr-arm='open "livereload:add?path=`pwd`"'
## Remove Current dir from livereload watchlist
alias lr-disarm='open "livereload:remove?path=`pwd`"'
@ryanlabouve
ryanlabouve / private.xml
Created February 26, 2013 05:39
I bought a truly ergonomic keyboard (trulyergonomic.com). Here are the adjustments I had to make (using KeyboardRemap4MacBook http://pqrs.org/macosx/keyremap4macbook/index.html.en) to type with reasonably little re-learning... also this is needed to remap caps lock: https://pqrs.org/macosx/keyremap4macbook/pckeyboardhack.html.en
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>TRULY_ERGONOMIC</vendorname>
<vendorid>0x0e6a</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>TRULY_ERGONOMIC_209</productname>
<productid>0x030c</productid>
@ryanlabouve
ryanlabouve / Sublime Settings
Last active August 29, 2015 13:56
Sublime Settings
// Install Package: Theme - Spacegray
// Install Package: Base16 Color Scheme
// Install Package: Theme - Flatland https://github.com/thinkpixellab/flatland
// Install Package: Block Cursor Everywhere
// Install Package: Emmet
// Install Package: Sass
// Install Package: Sublime ERB
// Install Package: ERB Snippets
// Install Package: Autofilename
// Install Package: Gutter Color
@ryanlabouve
ryanlabouve / environment.js
Last active March 1, 2016 05:03
Ember CLI - contentSecurityPolicy
// config/environment.js
// This is not for production. But it will get your
// console to stop screaming errors if your messing
// around with ember cli
module.exports = function(environment) {
//lots of stuff
// <Add this chunk>
@ryanlabouve
ryanlabouve / ember-deploy-notes.md
Last active January 27, 2017 09:48
Ember Deploy Notes (s3 and redis)
// Notes from our previous deploy strategy

CI for Ember-CLI App using

Using ember-cli-deploy we will deploy our Ember(-cli) app to S3 (and cloudfront), Redis via github and codeship.

Since skill-set's may vary, set's start by breaking this down at a high level:

import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
payload: {
key_one: "Here is the first value",
key_two: "Here is the second value!"
},
originalPayload: Ember.computed('', function() {
@ryanlabouve
ryanlabouve / refactoring-ui-from-multiple-ember-apps.md
Created September 28, 2015 17:42
[Talk] Refactoring UI from Multiple Ember Apps into a Shared Addon

When you have multiple Ember Apps living under the same brand, there are some inevitable duplications. We'll look at a few techniques about how to start refactoring these into a single addon to DRY up dependencies, assets, and components across multiple apps.

  • SASS Libraries (e.g. bootstrap)
  • Head Assets (e.g. fonts)
  • Common assets (e.g. images)
  • Common components (e.g. login screens)
@ryanlabouve
ryanlabouve / ember-tomorrows-css-today.md
Last active September 28, 2015 18:08
[Talk] Using Tomorrow CSS Today in Ember

Similar to how Babel.js allows us to use ES6 today, we can do the same thing in CSS using PostCSS. Let's see what this looks like in Ember.

  • PostCSS & CSSNext: What and Why?
  • Why people are breaking up with SASS
  • What PostCSS looks like in the wild
  • What this looks like in Ember-CLI and Broccoli
import { test } from 'qunit';
import moduleForAcceptance from 'esa-debug/tests/helpers/module-for-acceptance';
import {
authenticateSession,
} from 'esa-debug/tests/helpers/ember-simple-auth';
moduleForAcceptance('Acceptance | login');