RSS Test 2
Post Links
Flux Share |
Bookmark |
Permalink | Trackback |
Email to a Friend |
Comments Off on RSS Test 2
Test PowerPress RSS
Post Links
Flux Share |
Bookmark |
Permalink | Trackback |
Email to a Friend |
1 Comment on Test PowerPress RSS
Ember.js Bloggrcouch
Source: https://github.com/broerse/ember-cli-blog
Post Links
Flux Share |
Bookmark |
Permalink | Trackback |
Email to a Friend |
Comments Off on Ember.js Bloggrcouch
Martinic Scanner Vibrato
This is how the real scanner works. You can test the Software version of the Martinic Scanner Vibrato here.
Post Links
Flux Share |
Bookmark |
Permalink | Trackback |
Email to a Friend |
3 Comments on Martinic Scanner Vibrato
Inga’s Redbubble Shop
Post Links
Flux Share |
Bookmark |
Permalink | Trackback |
Email to a Friend |
2 Comments on Inga’s Redbubble Shop
Testing Ember-Pouch
Taking baby steps you can now create, delete and change records. Checkout: http://exmer.com/bloggrcouch/posts
Post Links
Flux Share |
Bookmark |
Permalink | Trackback |
Email to a Friend |
4 Comments on Testing Ember-Pouch
Ember-CLI and Fortune.js
I created an Ember-CLI example that uses Fortune.js as the server. It also uses the JsonApiAdapter for Ember-Data.
https://github.com/broerse/ember-cli-blog
Enjoy!
Post Links
Flux Share |
Bookmark |
Permalink | Trackback |
Email to a Friend |
2 Comments on Ember-CLI and Fortune.js
Building nbcnews.com using Ember
Post Links
Flux Share |
Bookmark |
Permalink | Trackback |
Email to a Friend |
Comments Off on Building nbcnews.com using Ember
Amsterdam Ember.js Meetup #1
The first Amsterdam Ember.js Meetup is scheduled for 12 March at 19:00 at Publitas.com. I like to see you there. RSVP on meetup.com.
Post Links
Flux Share |
Bookmark |
Permalink | Trackback |
Email to a Friend |
Comments Off on Amsterdam Ember.js Meetup #1
Ember WordPress test 4
If you access a post via an URL like http://broerse.net/ember/wp3/#/posts/3787 I didn’t know how to return the post with an ‘id’ from the objects created with findAll. I ended up fetching the specific post by ‘id’ from JetPack again. With much help from ‘melc’ and StackOverflow I changed my test to this:
http://broerse.net/ember/wp4/#/posts/3787
You can download the source from http://broerse.net/ember/wp4/wp4.zip or download the Ember Starter kit from http://emberjs.com/ and replace index.html and app.js files.
App = Ember.Application.create();
App.Router.map(function() {
this.resource('posts', function() {
this.resource('post', { path: ':post_id' });
});
});
App.Post = Ember.Object.extend();
App.Post.reopenClass({
findAll: function() {
return Ember.$.ajax({ url: 'http://public-api.wordpress.com/rest/v1/sites/58826716/posts/?number=10', dataType: "jsonp", type: 'GET' }).then(function(data) {
return data.posts.map(function(post) {
post['id'] = post['ID'];
delete post['ID'];
return App.Post.create(post);
});
});
},
find: function(id) {
return Ember.$.ajax({ url: 'http://public-api.wordpress.com/rest/v1/sites/58826716/posts/' + id + '/', dataType: "jsonp", type: 'GET' }).then(function(post) {
post['id'] = post['ID'];
delete post['ID'];
return App.Post.create(post);
});
}
});
App.PostsRoute = Ember.Route.extend({
model: function() {
return App.Post.findAll();
}
});
App.PostRoute = Ember.Route.extend({
model: function(params) {
var post = this.modelFor("posts").findBy("id",parseInt(params.post_id));
if(Em.isEmpty(post)){
return App.Post.find(params.post_id);
} else {
return post;
}
}
});
Post Links
Flux Share |
Bookmark |
Permalink | Trackback |
Email to a Friend |
Comments Off on Ember WordPress test 4