This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "json" | |
| class HandlebarsFilter < Rake::Pipeline::Filter | |
| def initialize(&block) | |
| block ||= proc { |input| input.sub(/\.handlebars$/, '.js') } | |
| super(&block) | |
| end | |
| def generate_output(inputs, output) | |
| inputs.each do |input| | |
| output.write "return Ember.Handlebars.compile(#{input.read.to_json})" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "json" | |
| require "rake-pipeline-web-filters" | |
| input "assets" | |
| output "public" | |
| class HandlebarsFilter < Rake::Pipeline::Filter | |
| def initialize(&block) | |
| block ||= proc { |input| input.sub(/\.handlebars$/, '.js') } | |
| super(&block) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "json" | |
| require "rake-pipeline-web-filters" | |
| input "assets" | |
| output "public" | |
| class HandlebarsFilter < Rake::Pipeline::Filter | |
| def initialize(&block) | |
| block ||= proc { |input| input.sub(/\.handlebars$/, '.js') } | |
| super(&block) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| echo | |
| find ${1:-.} -name "*.js" \ | |
| | xargs cat \ | |
| | grep '.emit(' \ | |
| | sed 's/.*.emit(//g' \ | |
| | sed -E "s/,|'|); *$//g" \ | |
| | awk '{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'execjs' | |
| class HandlebarsFilter < Filter | |
| class << self | |
| def contents | |
| @@contents ||= [File.read("headless-ember.js"), File.read("ember.js")].join("\n") | |
| end | |
| def context | |
| @@context ||= ExecJS.compile(contents) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(exports) { | |
| window.DS = SC.Namespace.create(); | |
| })({}); | |
| (function(exports) { | |
| DS.Adapter = SC.Object.extend({ | |
| commit: function(store, commitDetails) { | |
| commitDetails.updated.eachType(function(type, array) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export DYLD_PRINT_OPTS="1" | |
| export DYLD_PRINT_ENV="1" | |
| export DYLD_PRINT_LIBRARIES="1" | |
| export DYLD_PRINT_LIBRARIES_POST_LAUNCH="1" | |
| export DYLD_PRINT_APIS="1" | |
| export DYLD_PRINT_BINDINGS="1" | |
| export DYLD_PRINT_INITIALIZERS="1" | |
| export DYLD_PRINT_REBASINGS="1" | |
| export DYLD_PRINT_SEGMENTS="1" | |
| export DYLD_PRINT_STATISTICS="1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var fg = { | |
| 30: 'fg-black' | |
| , 31: 'fg-red' | |
| , 32: 'fg-green' | |
| , 33: 'fg-yellow' | |
| , 34: 'fg-blue' | |
| , 35: 'fg-magenta' | |
| , 36: 'fg-cyan' | |
| , 37: 'fg-white' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "json" | |
| require "uglifier" | |
| require "rake-pipeline-web-filters" | |
| # this gives you concat, coffee_script, and minispade methods | |
| require "rake-pipeline-web-filters/helpers" | |
| class ImportFilter < Rake::Pipeline::Filter | |
| def generate_output(inputs, output) | |
| inputs.each do |input| |