This file contains 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
case GET_USERS: | |
return [...action.payload]; | |
//payload looks like: [{id: 1, name: blah, age: 30}{id: 2, name: blub, age: 20}] | |
case GET_USER_PROPS: | |
//payload looks like: {prop1: foo, prop2: bar, ...} | |
//i tried this, with lodash merge, but as expected that creates a new object, whereas i want an array of objects. | |
return merge({}, state, action); |
This file contains 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
## Book wishes | |
### Infrastructure | |
- Test-Driven Infrastructure with Chef: http://shop.oreilly.com/product/0636920030973.do | |
- The Chef Survival Guide: https://leanpub.com/chef-survival-guide | |
### Rails | |
- http://www.confidentruby.com/ | |
- http://exceptionalruby.com/ |
This file contains 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. | |
WeekPresence.get('transaction').commit(); | |
//2. | |
WeekPresences.pushObject(WeekPresence); | |
//3. | |
var WeekPresence = Haps.WeekPresence.createRecord({ | |
monday: this.set('model.monday', value), | |
tuesday: this.get('model.tuesday'), |
This file contains 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
== Comparison of MVCs - Ember vs. Rails | |
http://jeffreybiles.com/blog/much-very-confused.html |
This file contains 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
== Install Package Manager | |
paste code into ST console: | |
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print('Please restart Sublime Text to finish installation') | |
== Plugin Suggestions (add yours) | |
SideBarEnhancements |