I hereby claim:
- I am jeremywrowe on github.
- I am jeremywrowe (https://keybase.io/jeremywrowe) on keybase.
- I have a public key ASBqyp6W1b4t7Yb2OUNONUPaIbFd3fTaqEQA3ZqgpyrPiwo
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
class PipeNode | |
attr_writer :result | |
def initialize(value, chain) | |
@value = value | |
@chain = chain | |
@result = :unknown | |
end |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
require 'fileutils' | |
include FileUtils | |
template_dir = ARGV[0] or fail 'You must supply a template directory' | |
new_project_dir = ARGV[1] or fail 'You must supply a new project name' | |
template_dir = File.join(Dir.home, '.ember-cli-cache', template_dir) | |
fail "The template you are looking for does not exist '#{template_dir}'" unless File.exist? template_dir |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
box = 'ubuntu/trusty64' | |
hostname = 'emberclibox' | |
domain = 'example.com' | |
ip = '192.168.42.42' | |
ram = '1024' | |
$rootScript = <<SCRIPT |
{ | |
"app/adapters/*.js": { | |
"command": "adapter", | |
"template": [ | |
"import ApplicationAdapter from './application';", | |
"", | |
"export default ApplicationAdapter.extend({", | |
"", | |
"});" | |
], |
set nocompatible | |
set shell=/bin/bash | |
if filereadable(expand("~/.vimrc.bundles")) | |
source ~/.vimrc.bundles | |
endif | |
if (&t_Co > 2 || has("gui_running")) && !exists("syntax_on") | |
syntax on | |
endif |
{ | |
"app/adapters/*.js": { | |
"command": "adapter", | |
"template": [ | |
"import ApplicationAdapter from './application';", | |
"", | |
"export default ApplicationAdapter.extend({", | |
"", | |
"});" | |
], |
If you return a promise beforeModel
, model
, and afterModel
in a route, it
will wait to resolve the promise
before transitioning into the route. This is
helpful when using loading and error substate templates.
All ember data records go into a global cache. There is not a cache per query,
var EmberApp = require('ember-cli/lib/broccoli/ember-app'), | |
app = new EmberApp() | |
files = require('broccoli-static-compiler'), | |
trees = require('broccoli-merge-trees'); | |
var fonts = files('./bower_components/fontawesome/fonts', { | |
srcDir: '/', | |
files: ['*'], | |
destDir: '/fonts' | |
}); |