View gist:cad2d1067f07de5eff06
1 2 3 4 5 6 7 8 9
describe('proxy with subdomain', function() {
beforeEach(function() {
return subject.start({
proxy: 'http://api.lvh.me:3001/',
host: '0.0.0.0',
port: '1337',
baseURL: '/'
});
});
View gist:4d30dd37600512e56024
1 2 3 4 5 6 7
function formatDate(date, format) {
return window.moment(date).format(format);
}
 
export {
formatDate
};
View gist:27dab360c9bb9d57cffa
1 2 3 4 5 6 7 8 9
model: function() {
var articles = this.modelFor('friends/show').get('articles');
 
if (articles.get('isFulfilled')) {
articles.reload();
}
 
return articles.then(function(collection) {
var result;
View foo.js
1 2 3 4 5 6 7 8 9 10
import Ember from 'ember';
import DS from 'ember-data';
 
import { request } from 'ic-ajax';
 
export default Ember.Mixin.create({
attachment: null,
saveWithAttachment: function() {
return this.createWithAttachment();
},
View ember-cli-101-dot-com-uploading.js
1 2 3 4 5 6 7 8 9 10
import Ember from 'ember';
import { request } from 'ic-ajax';
 
export default Ember.Component.extend({
actions: {
upload: function() {
var _this = this;
var formData = new FormData();
formData.append("file", this.$('input')[0].files[0]);
var url = this.get('url');
View gruntfile.ks
1 2 3 4 5 6 7 8 9 10
module.exports = function(grunt) {
grunt.initConfig({
env: process.env,
s3: {
options: {
key: '<%= env.AWS_ACCESS_KEY_ID %>',
secret: '<%= env.AWS_SECRET_ACCESS_KEY %>',
bucket: '<%= env.AWS_BUCKET %>',
access: 'public-read',
headers: {
View foo.js
1 2 3 4 5 6 7 8 9 10
// app/utils/time-helpers.js
 
var unix = moment.unix,
months = months;
 
 
 
export {
unix,
months
View out.sh
1 2 3 4 5 6 7 8 9 10
uild successful - 10790ms.
 
Slowest Trees | Total
-------------------------------+----------------
ES3SafeFilter | 3270ms
JSHint - App | 2678ms
ES6Concatenator | 2252ms
TemplateCompiler | 863ms
 
file changed controllers/micro-tags/edit.js
View modal.js
1 2 3 4 5 6 7 8 9
openModal: function(modalName, controller) {
 
return this.render(modalName, {
into: 'application',
outlet: 'modal',
controller: controller
});
},
closeModal: function() {
View redis_controller.rb
1 2 3 4 5 6 7 8 9 10
class RedisController < ApplicationController
private
def render_from_redis(prefix, variation = nil)
manifest_id = params[:manifest_id]
 
if manifest_id.blank?
current_manifest_key = if variation
"#{prefix}:#{variation}:current"
else
"#{prefix}:current"
Something went wrong with that request. Please try again.