This is a very trivial example of using mirage with Ember Twiddle.
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
import { reads }, macro from 'macro-decorators'; | |
/* Usage: | |
* | |
* import { hasEnabledFeature } from 'yapp-ember-kit/macro-decorators'; | |
* | |
* @reads('yappService.model') yapp; | |
* @hasEnabledFeature('teleportation') canTeleport; | |
*/ |
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
import { | |
RequestStrategy, | |
} from '@orbit/coordinator'; | |
export default { | |
create() { | |
return new RequestStrategy({ | |
name: 'store-yapp-api-query-blocking', | |
source: 'store', |
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
class ReportOpenExperimentsToYappieJob | |
include Sidekiq::Worker | |
sidekiq_options :queue => :yappie | |
include Sidetiq::Schedulable | |
recurrence { daily.hour_of_day(9) } | |
def perform | |
active_experiments = Split::Experiment.all.select{ |exp| exp.winner.nil? } | |
active_experiments.each do |experiment| |
Yapp is hiring a “full-stack” engineer, with key skills Ember.js & Rails. Join our small, talented team and do the best work of your career!
If you are passionate about your craft and want a chance to work remotely with a great team where you can influence the technology, process, product, and culture, read on!
We enable non-developers to create mobile apps for conference, trainings and employee communications. Yapp combines clean design, simple UX, and innovative mobile technology to empower people that may lack technical and design know-how, or just don't have time, to create and publish these apps in minutes.
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
export function uuid() { | |
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | |
var r, v; | |
r = Math.random() * 16 | 0; | |
v = c === 'x' ? r : r & 3 | 8; | |
return v.toString(16); | |
}); | |
} |
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
This requires `brew install jq` which is a command json query. | |
I got this from @krisselden |
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
var LE = require('letsencrypt'); | |
var pem = require('pem'); | |
var RSVP = require('rsvp'); | |
var fs = require('fs'); | |
var path = require('path'); | |
var mkdirp = require('mkdirp'); | |
var domains, herokuAppName, duplicate; | |
if (process.env.YAPP_ENV === 'qa') { | |
domains = ['heroku.yappqa.us', 'my.yappqa.us', 'api.yappqa.us', 'support.yappqa.us' ]; |
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
machine: | |
node: | |
version: 5 | |
checkout: | |
post: | |
- git submodule sync | |
- git submodule update --init | |
dependencies: |