Skip to content

Instantly share code, notes, and snippets.

View bartocc's full-sized avatar

Julien Palmas bartocc

View GitHub Profile
@bartocc
bartocc / controllers.application.js
Created August 9, 2016 14:35
nested routes with pods
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@bartocc
bartocc / templates.post.hbs
Last active July 1, 2016 20:47
link-to with undefined href
Displaying post {{model.id}}
<br>
{{#link-to 'user' model.user}}Link to user{{/link-to}}
<br>
{{#each model.comments as |comment|}}
{{#link-to 'comment' comment}}Link to comment {{comment.id}}{{/link-to}}
{{/each}}
@bartocc
bartocc / controllers.application.js
Created June 30, 2016 08:32
Loading templates tests
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Adapter from "ember-data/adapters/json-api";
export default Adapter.extend();
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
// Add options here
});
// Use `app.import` to add additional libraries to the generated
// output files.
@bartocc
bartocc / gist:29e0a3455203c394a160
Created September 18, 2015 09:31
ember deploy:list prod
version: 1.13.8
Registering hook -> configure[build]
Registering hook -> configure[gzip]
Registering hook -> configure[s3]
Registering hook -> configure[redis]
Registering hook -> configure[manifest]
Registering hook -> configure[revision-key]
Executing pipeline
|
+- configure
@bartocc
bartocc / output
Created November 25, 2014 15:51
Segmentation fault
Welcome to the Phusion Passenger Apache 2 module installer, v5.0.0.beta1.
This installer will guide you through the entire installation process. It
shouldn't take more than 3 minutes in total.
Here's what you can expect from the installation process:
1. The Apache 2 module will be installed for you.
2. You'll learn how to configure Apache.
3. You'll learn how to deploy a Ruby on Rails application.
bar