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
| import Ember from 'ember'; | |
| import AdultValidations from '../validations/adult'; | |
| import ChildValidations from '../validations/child'; | |
| import { reservedEmails } from '../validators/uniqueness'; | |
| import { schema } from '../models/user'; | |
| const { get } = Ember; | |
| const { keys } = Object; | |
| export default Ember.Controller.extend({ |
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
| (ns roman-numerals | |
| (:require [clojure.string :as s])) | |
| (def ^:private romans {1000 \M, 500 \D, 100 \C, 50 \L, 10 \X, 5 \V, 1 \I}) | |
| (defn gen-char | |
| [num] | |
| (let [tuple (first (filter #(>= 0 (- (first %) num)) romans))] | |
| [(last tuple) (- num (first tuple))])) |
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
| FROM node:6.3.1 | |
| RUN \ | |
| apt-get update && apt-get install -y \ | |
| python-setuptools \ | |
| python-dev \ | |
| autoconf \ | |
| automake \ | |
| curl \ | |
| ca-certificates \ |
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
| version: '2' | |
| services: | |
| web: | |
| image: inspiritus_web:latest | |
| command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'" | |
| ports: | |
| - "3000:3000" | |
| links: | |
| - db |
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
| import Ember from 'ember'; | |
| export default Ember.Component.extend({ | |
| model: [ | |
| {label:'a'}, | |
| {label:'b'} | |
| ], | |
| selected: null, | |
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
| { | |
| "firebase": "mlvk-stores-info", | |
| "public": "dist", | |
| "ignore": [ | |
| "firebase.json", | |
| "**/.*", | |
| "**/node_modules/**" | |
| ], | |
| "rewrites": [ | |
| { |
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
| guard 'rake', :task => 'pdf:test' do | |
| watch('app/workers/generate_pdf_worker.rb') | |
| end |
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
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle' | |
| }); |
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
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle' | |
| }); |
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
| @computed('invoices.[]') | |
| invoiceDeliveryWindows(invoices){ | |
| const promise = new RSVP.Promise((res, rej) => { | |
| RSVP.all(invoices.map(invoice => invoice.get('client'))) | |
| .then(clients => RSVP.all(clients.map(client => client.get('deliveryWindows')))) | |
| .then(dwRels => dwRels.map(dwRel => dwRel.get('firstObject'))) | |
| .then(dws => dws.filter(dw => (!!dw))) | |
| .then(dws => res(dws)); | |
| }); |