I hereby claim:
- I am shama on github.
- I am shama (https://keybase.io/shama) on keybase.
- I have a public key whose fingerprint is F6D7 6C36 9C6E AB90 7590 17EB 2F62 CF16 5E42 E438
To claim this, I am signing this object:
| var h = require('virtual-dom/h') | |
| var xtend = require('xtend/mutable') | |
| var merge = require('xtend') | |
| function DownUp(data) { | |
| if (!(this instanceof DownUp)) return new DownUp(data) | |
| var self = this | |
| this.set({ | |
| tagName: 'div', | |
| childViews: [], |
I hereby claim:
To claim this, I am signing this object:
| function sync(callback) { | |
| callback() | |
| } | |
| function async(callback) { | |
| process.nextTick(function() { | |
| callback() | |
| }) | |
| } |
Method for triggering an action on any controller from a component, such as with nested Ember components.
WARNING: You really shouldn't do this as it couples your component to your app, which kind of defeats the purpose of the component, right?
GlobalAction = Ember.Mixin.create
triggerGlobalAction: (action, controller="application", args...) ->
@triggerAction
action: action
target: @container.lookup('controller:' + controller)| function Animal(name) { | |
| if (!(this instanceof Animal)) return new Animal(name); | |
| this.name = name || 'unknown'; | |
| } | |
| module.exports = Animal; | |
| Animal.prototype.feed = function(food) { | |
| food = food || 'food'; | |
| return 'Fed ' + this.name + ' some ' + food; | |
| }; |
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| compass: { | |
| dist: { | |
| options: { | |
| sassDir: 'sass', | |
| cssDir: 'css', | |
| environment: 'production', | |
| }, | |
| }, |
| C:\Users\Office\Documents\www\grunt>grunt | |
| Running "jshint:gruntfile_tasks" (jshint) task | |
| >> 2 files lint free. | |
| Running "jshint:libs_n_tests" (jshint) task | |
| >> 24 files lint free. | |
| Running "jshint:subgrunt" (jshint) task | |
| >> 1 file lint free. |
| #!/usr/bin/env node | |
| var falafel = require('falafel'); | |
| var globule = require('globule'); | |
| var fs = require('fs'); | |
| var path = require('path'); | |
| // Remove this line | |
| var line = "grunt.verbose.writeflags(options, 'Options');"; |
| uglify: { | |
| test: { | |
| files: [{ | |
| expand: true, | |
| cwd: 'test/fixtures/', | |
| src: '**/*.js', | |
| dest: 'tmp/things', | |
| ext: '.min.js', | |
| }] | |
| } |