{
"name": "Account Name",
"starting_balance": 354745, // Number in pennies
"starting_balance_date": "2015-03-15",
"current_balance": 269439 // Number in pennies
"current_balance_date": "2015-07-03",
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
// -> Define an object called 'Robot' | |
// -> Define a method called 'new' in Robot | |
// -> When Robot.new is called it should return a new object with Robot as its prototype | |
// e.g. var robby = Robot.new(); | |
// Robot should be the prototype of robby | |
var Robot = { | |
new: function() { | |
return Object.create(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
/* | |
* Gulp plugins | |
*/ | |
var gulp = require('gulp'); | |
var autoprefixer = require('gulp-autoprefixer'); | |
var babel = require('gulp-babel'); | |
var browserSync = require('browser-sync'); | |
var cache = require('gulp-cache'); | |
var concat = require('gulp-concat'); |
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
let forecasts = new ForecastCollection(); | |
var Store = _.extend({}, Backbone.Events, { | |
initialize() { | |
this.listenTo(forecasts, 'add remove change', () => this.trigger('change')); | |
}, | |
getForecasts() { | |
return forecasts.toJSON(); | |
}, |
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
import ForecastCollection from './models'; | |
let forecasts = new ForecastCollection(); | |
var Store = _.extend({}, Backbone.Events, { | |
initialize() { | |
this.listenTo(forecasts, 'add remove change', () => this.trigger('change')); | |
}, | |
getForecasts() { |
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
import Ember from 'ember'; | |
export default Ember.Route.extend({ | |
'things-store': Ember.inject.service('things-store'), | |
model() { | |
console.log('model', this.get('things-store.things').length); | |
this.get('things-store').fetch(); | |
console.log('post', this.get('things-store.things').length); | |
return this.get('things-store'); | |
}, |
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
#!/bin/sh | |
# Check for Homebrew, | |
# Install if we don't have it | |
if test ! $(which brew); then | |
echo "Installing homebrew..." | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi | |
echo "Setting up XCode" |
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
1.1 Assignments |
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
1.1 Notes |