From a terminal run the following commands:
git clone git@github.com:emberjs/ember.js
cd ember.js
npm install
npm startWhile that is running open another terminal and run the following (starting from the ember.js folder you cloned a moment ago):
| /* | |
| * object.watch polyfill | |
| * | |
| * 2012-04-03 | |
| * | |
| * By Eli Grey, http://eligrey.com | |
| * Public Domain. | |
| * NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
| */ |
| import re | |
| from django.utils.text import compress_string | |
| from django.utils.cache import patch_vary_headers | |
| from django import http | |
| try: | |
| import settings | |
| XS_SHARING_ALLOWED_ORIGINS = settings.XS_SHARING_ALLOWED_ORIGINS |
| from django import http | |
| try: | |
| from django.conf import settings | |
| XS_SHARING_ALLOWED_ORIGINS = settings.XS_SHARING_ALLOWED_ORIGINS | |
| XS_SHARING_ALLOWED_METHODS = settings.XS_SHARING_ALLOWED_METHODS | |
| XS_SHARING_ALLOWED_HEADERS = settings.XS_SHARING_ALLOWED_HEADERS | |
| XS_SHARING_ALLOWED_CREDENTIALS = settings.XS_SHARING_ALLOWED_CREDENTIALS | |
| except AttributeError: | |
| XS_SHARING_ALLOWED_ORIGINS = '*' |
| /* | |
| As of 5/13/2013 3:06PM Central Time this script is working. Tweet @runspired to report malfunctions. | |
| */ | |
| /* | |
| Use the Javascript console in Google Chrome and the tcx2nikeplus converter located here: http://www.awsmithson.com/tcx2nikeplus/ | |
| This will take some time to run but will port all of your garmin data to nike+. |
| /* | |
| This javascript closure will create a timeline manager to let you filter | |
| out users and keywords from your stream. In theory it stores the info | |
| in a cookie for one day, but cookie setting appears to be not working currently. | |
| The manager object has methods for showing a hidden username or keyword, | |
| but currently no buttons to do so. | |
| Keyword filtration is case sensitive and is done based on a single string | |
| match on the tweet's content, it does not match usernames that might |
| Ember.ArrayFilter = Em.ArrayProxy.extend({ | |
| init: function() { | |
| this._filterContentDidChange(); | |
| this._super(); | |
| }, | |
| arrangedContent: function() { | |
| var af = this; | |
| return Ember.ArrayFilterSortProxy.create({ | |
| arrayFilter: af, |
| /* | |
| * Little example of how to use ```socket-io.client``` and ```request``` from node.js | |
| * to authenticate thru http, and send the cookies during the socket.io handshake. | |
| */ | |
| var io = require('socket.io-client'); | |
| var request = require('request'); | |
| /* | |
| * This is the jar (like a cookie container) we will use always |
| /** | |
| * `Ember.MergedArray` is an array that observes multiple other arrays (called source arrays) for changes and includes | |
| * all items from all source arrays in an efficient way. | |
| * | |
| * Usage: | |
| * | |
| * ```javascript | |
| * var obj = Ember.Object.create({ | |
| * people: [ | |
| * { |
From a terminal run the following commands:
git clone git@github.com:emberjs/ember.js
cd ember.js
npm install
npm startWhile that is running open another terminal and run the following (starting from the ember.js folder you cloned a moment ago):