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
| PhoneNumber = Ember.Object.extend({ | |
| areaCode: null, | |
| number: null | |
| }); | |
| Person = Ember.Object.extend({ | |
| areaCode: function() { | |
| var areaCodes = {}, phoneNumbers = this.get('phoneNumber'); | |
| for (var i=0, l=phoneNumbers.length; i<l; i++) { |
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
| Person = Ember.Object.extend({ | |
| fullName: function() { | |
| var gender = this.get('gender'), parts, married; | |
| if (gender === "M") { | |
| parts = ["Mr."]; | |
| } else if (gender === "F") { | |
| married = this.get('married'); | |
| parts = [married ? "Mrs." : "Ms."]; | |
| } else { |
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
| // This file contains utilities for creating bound helpers | |
| // For reference: https://github.com/wagenet/ember.js/blob/ac66dcb8a1cbe91d736074441f853e0da474ee6e/packages/ember-handlebars/lib/views/bound_property_view.js | |
| Ember.Handlebars.BoundHelperView = Ember.View.extend(Ember._Metamorph, { | |
| context: null, | |
| options: null, | |
| property: null, | |
| // paths of the property that are also observed | |
| propertyPaths: [], |
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
| /static/sass/: | |
| screen.scss: (common stylesheet) | |
| phone.scss, tablet.scss, desktop.scss: (form factor-specific styles) | |
| /static/js/: | |
| libs/: (external libraries - DO NOT MODIFY) | |
| ember-and-friends.js | |
| jquery.js | |
| formfactor.js | |
| views/: (form-factor specific views) |
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
| Viz.WidgetsController = Ember.ArrayController.extend | |
| init: -> | |
| @refresh() | |
| setInterval (=> @refresh), 5000 | |
| refresh: -> | |
| $.ajax | |
| url: @get('src'), | |
| type: "GET", | |
| context: this, |
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
| # for good measure | |
| @daily /etc/init.d/weinred restart |
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 'rake-pipeline' | |
| require 'rake-pipeline/middleware' | |
| require 'net/http' | |
| require 'net/https' | |
| require 'uri' | |
| module Rack | |
| class Proxy | |
| def initialize(app, project, opts={}) |
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| |
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
| 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" |