https://www.mutuallyhuman.com/blog/2016/01/22/component-integration-testing-in-ember/
http://frontside.io/blog/2016/01/22/functional-templating-in-ember.html
# disable mouse control by default - change 'off' to 'on' to enable by default. | |
setw -g mode-mouse off | |
set-option -g mouse-resize-pane off | |
set-option -g mouse-select-pane off | |
set-option -g mouse-select-window off | |
# toggle mouse mode to allow mouse copy/paste | |
# set mouse on with prefix m | |
bind m \ | |
set -g mode-mouse on \;\ | |
set -g mouse-resize-pane on \;\ |
import Ember from 'ember'; | |
import DS from 'ember-data'; | |
var computed = Ember.computed; | |
var get = Ember.get; | |
var RSVP = Ember.RSVP; | |
export default DS.Model.extend({ | |
name: DS.attr('string'), | |
players: DS.hasMany('player', { async: true }), |
https://github.com/Townk/vim-autoclose
https://github.com/vim-scripts/closetag.vim
#Join line kJ does the trick (watch below)
var flattenObject = function(ob) { | |
var toReturn = {}; | |
for (var i in ob) { | |
if (!ob.hasOwnProperty(i)) continue; | |
if ((typeof ob[i]) == 'object') { | |
var flatObject = flattenObject(ob[i]); | |
for (var x in flatObject) { | |
if (!flatObject.hasOwnProperty(x)) continue; |
export DOKKU_HOST=$HOSTNAME | |
export PUBLIC_KEY=~/.ssh/id_rsa.pub | |
export DEVELOPER=john | |
cat $PUBLIC_KEY | ssh root@$DOKKU_HOST "sudo sshcommand acl-add dokku $DEVELOPER" |
Data Down / Actions Up
Other
http://emberjs.jsbin.com/rwjblue/299/edit?js,output - simplified version of ic-ajax
'use strict'; | |
const fs = Promise.promisifyAll(require('fs')); | |
const path = require('path'); | |
const crypto = require('crypto'); | |
const CronJob = require('cron').CronJob; | |
module.exports = class FlowUploader { | |
constructor(tempDir, uploadDir, maxFileSize, fileParameterName) { | |
this.tempDir = tempDir || './tmp'; |