Skip to content

Instantly share code, notes, and snippets.

View jschilli's full-sized avatar

Jeff Schilling jschilli

View GitHub Profile
@jschilli
jschilli / test-output.json
Created April 3, 2015 15:27
Sample output from the ember-cli-blanket json reporter
{
"stats": {
"suites": 36,
"tests": 47,
"passes": 46,
"pending": 0,
"failures": 1,
"start": "2015-04-03T02:30:45.108Z",
"end": "2015-04-03T02:30:47.246Z"
},
Em.run(function() {
dasView = createDasView(items, groups, selectedGroups, selectedItems);
dispatcher = Em.EventDispatcher.create({ rootElement:fixtureId });
dispatcher.setup();
});
module.exports = function() {};
module.exports.prototype = {
configure: function(noHandlebarsCompileExpression) {
this._isEnabled = noHandlebarsCompileExpression;
},
getOptionName: function() {
return 'noHandlebarsCompile';
@jschilli
jschilli / gist:a1f1e588eeae598487d8
Created March 6, 2015 13:49
add to the app tree
/* jshint node: true */
'use strict';
var path = require('path');
var pickFiles = require('broccoli-static-compiler');
module.exports = {
name: 'lang-concat',
treeFor: function(type) {
if (type === 'app') {
// Deferred aka Wrapped vendor files
@jschilli
jschilli / assetfile.rb
Created March 13, 2012 17:33 — forked from ppcano/assetfile.rb
Attempting concat multiple match to contact to the same output file
input "assets/vendor" do
match "*.js" do
filter Rake::Pipeline::OrderingConcatFilter,
["minispade.js", "qrcode.js", "jquery.js", "jquery.transit.js"], "app.js"
end
end
var App = SC.Application.create();
App.MyView = SC.View.extend({
defaultTemplate:Ember.Handlebars.compile('<h1>TestView</h1'),
classNames: ['test-view'],
tapEnd:function() {
console.log('tap recieved');
alert('tap end');
},
"bpm:build": {
"bpm_libs.js": {
"spade:format": "function",
"files": [
"js/stativus.js",
"js/modernizr-2.0.6.min.js",
"ext",
"lib",
"templates",
"resources",
@jschilli
jschilli / model.js
Created September 22, 2011 20:20 — forked from wagenet/model.js
SC Rails DataSource
MyApp.MyModel.mixin({
resourcePathFor: function(action, storeKey, item) {
var id, path;
id = storeKey ? MyApp.store.idFor(storeKey) : null;
switch(action) {
case 'fetch':
case 'create':
path = 'items';
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bpm-1.0.0.rc.1/lib/bpm/libgems_ext/config_file.rb:12: warning: already initialized const
ant SHGetFolderPath
Building static assets...
~ Using fetched package 'uglify-js' (1.0.7)
~ Using fetched package 'spade' (1.0.1)
which says:
which says:
which says:
which says:
which says: C:\Windows\System32\cscript.exe
C:\temp>irb
irb(main):001:0> require 'ExecJS'
=> true
irb(main):002:0> ExecJS.Runtime
NoMethodError: undefined method `Runtime' for ExecJS:Module
from (irb):2
from C:/Ruby192/bin/irb:12:in `<main>'
irb(main):003:0> ExecJS.runtime
=> #<ExecJS::ExternalRuntime:0x249d998 @name="JScript", @command="cscript //E:jscript //Nologo", @runner_path="C:/Ruby192/li
b/ruby/gems/1.9.1/gems/execjs-1.2.4/lib/execjs/support/jscript_runner.js", @test_args=nil, @test_match=nil, @binary="C:\\Win