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
| If this is the Data Structure, how can Ember Data map this structure to real DS.Model objects ? | |
| [ | |
| { | |
| "id": 123, | |
| "name": "measurement point ...", | |
| "reference": { | |
| "measurement": { | |
| "id": 889 | |
| } |
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
| init: function() { | |
| var view = this; | |
| var resizeHandler = function() { | |
| view.rerender(); | |
| }; | |
| this.set('resizeHandler', resizeHandler); | |
| $(window).bind('resize', this.get('resizeHandler')); | |
| }, |
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
| HS.router = Ember.Router.create({ | |
| enableLogging: true, | |
| //location: 'history', | |
| root: Ember.Route.extend({ | |
| enter: function() { | |
| //HS.router.get('blogPostsListController').set('content', HS.store.findAll(HS.BlogPost)); | |
| console.log('enter root state'); | |
| HS.store.findAll(HS.PageModel); | |
| }, |
This file has been truncated, but you can view the full file.
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
| joahaa:~ joahaa$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install collectd | |
| ==> Downloading http://collectd.org/files/collectd-5.1.0.tar.bz2 | |
| Already downloaded: /Library/Caches/Homebrew/collectd-5.1.0.tar.bz2 | |
| /usr/bin/tar xf /Library/Caches/Homebrew/collectd-5.1.0.tar.bz2 | |
| ==> ./configure -C --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/collectd/5.1.0 --localstatedir=/usr/local/var --with-python=/usr/bin | |
| ./configure -C --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/collectd/5.1.0 --localstatedir=/usr/local/var --with-python=/usr/bin | |
| configure: creating cache config.cache | |
| checking build system type... x86_64-apple-darwin12.1.0 | |
| checking host system type... x86_64-apple-darwin12.1.0 | |
| checking for gcc... cc |
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 any messages produced by compilers while | |
| running configure, to aid debugging if configure makes a mistake. | |
| It was created by libltdl configure 2.2.6b, which was | |
| generated by GNU Autoconf 2.65. Invocation command line was | |
| $ ./configure --disable-option-checking --prefix=/usr/local/Cellar/collectd/5.1.0 --disable-debug --disable-dependency-tracking --localstatedir=/usr/local/var --with-python=/usr/bin CC=cc PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/Library/Homebrew/pkgconfig --enable-ltdl-convenience --cache-file=../config.cache --srcdir=. | |
| ## --------- ## | |
| ## Platform. ## |
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
| { | |
| "chapters": [ | |
| { | |
| "title": "Ember.js - Powering Your Next Ambitious Web Application", | |
| "index": 1, | |
| "id": "ch01", | |
| "abstract": "ch01_abs", | |
| "sections": [ | |
| "ch01_4", | |
| "ch01_40" |
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
| { | |
| "pinstatus": | |
| { | |
| "id": "gpio", | |
| "vdcOne": false, | |
| "vdcTwo": false, | |
| "sda0": false, | |
| "dnc0": false, | |
| "scl0": false, | |
| "gnd": false, |
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
| //STORE | |
| Jaspberry.store = DS.Store.create({ | |
| //adapter: Jaspberry.Adapter, | |
| adapter: DS.RESTAdapter.create({ | |
| bulkCommit: false, | |
| plurals: { pinstatus: 'pinstatuses'} | |
| }), | |
| revision: 10 | |
| }); |
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
| EurekaJ.MainChartsRoute = Ember.Route.extend({ | |
| model: function() { | |
| return EurekaJ.MainMenuModel.find(); | |
| }, | |
| setupController: function(controller, model) { | |
| //controller.set('content', model); //Tried it with an without this, even with set('content', EurekaJ.MainMenuModel.find()); | |
| } | |
| }); |
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
| EurekaJ = Ember.Application.create(); | |
| EurekaJ.Router.map(function() { | |
| this.route("login", {path: "/"}); | |
| this.resource("main", {path: "/main"}, function() { | |
| this.route("dashboard"); | |
| this.route("charts"); | |
| this.route("chartGroups"); | |
| this.route("alerts"); | |
| this.route("administration"); |