- Hampton Catlin: @hcatlin
- Jay Hayes: @iamvery
- Pamela O Vickers: @pwnela
- Ben Lovell: @benlovell
- Rebecca Poulson: @RebeccaPoulson
- Laura Frank: @rhein_wein
- Romeeka Gayhart: @CCandUC
- Noel Rappin: @noelrap
- Carlos Souza: @caike
- Scott Parker: @citizenparker
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
| save: function(){ | |
| var url = "/api/v1/player_evaluations"; | |
| var recordType = "player_evaluation"; | |
| var topLevelKey = `${recordType}s`; | |
| var itemsToSave = this.get('myItems'); | |
| var store = this.get('store'); | |
| var type = "post"; | |
| var dataType = "json"; | |
| var contentType = "application/json; charset=utf-8"; |
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 'rspec' | |
| class Let | |
| def self.let(method_name, &block) | |
| define_method method_name do | |
| return instance_variable_get("@#{method_name}") if instance_variable_defined?("@#{method_name}") | |
| instance_variable_set("@#{method_name}", block.call) | |
| end | |
| end | |
| end |
- Introduction to Ember.js (Luke Melia) https://www.youtube.com/watch?v=7O9X5oeAJm4
- Fire Up with Ember (Sara Robinson) https://www.youtube.com/watch?v=Cs3Fdup7aUo
- Building Web Applications with Ember.js (Yehuda Katz) https://www.youtube.com/watch?v=u6RFyVN9sNg
- Ember.js Guides http://emberjs.com/guides/
- Ember.js Getting Started Guide http://emberjs.com/guides/getting-started/
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # | |
| # Created by Jonathan Jackson | |
| # ( Special thanks to @pwelch for the help ) | |
| Vagrant.configure(2) do |config| | |
| MEMORY = ENV['VAGRANT_MEMORY'] || '1024' | |
| CORES = ENV['VAGRANT_CORES'] || '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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # | |
| # Created by Jonathan Jackson | |
| # ( Special thanks to @pwelch for the help ) | |
| Vagrant.configure(2) do |config| | |
| MEMORY = ENV['VAGRANT_MEMORY'] || '1024' | |
| CORES = ENV['VAGRANT_CORES'] || '2' |
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({ | |
| beforeModel: function(transition) { | |
| var self = this; | |
| new Ember.RSVP.Promise(function(resolve, reject) { | |
| if(self.get('currentUser.content')) { | |
| resolve(); | |
| } else { | |
| Ember.$.cookie("return-path", window.location.pathname, { path: "/" }); |
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
| class Vj |
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
| describe 'Deep' do | |
| it 'allows deep method chaning on hash keys.' do | |
| foo = ({a: { b: 'foo'}}).extend Deep | |
| expect(foo.a.b).to eq('foo') | |
| end | |
| it 'is safe for no hash items.' do | |
| foo = ({a: { b: 'foo'}}).extend Deep | |
| expect do | |
| foo.a.b.o |
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
| Rake::TaskManager.class_eval do | |
| def alias_task(fq_name) | |
| new_name = "#{fq_name}:original" | |
| @tasks[new_name] = @tasks.delete(fq_name) | |
| end | |
| end | |
| def alias_task(fq_name) | |
| Rake.application.alias_task(fq_name) | |
| end |