I hereby claim:
- I am trmcnvn on github.
- I am vevix (https://keybase.io/vevix) on keybase.
- I have a public key whose fingerprint is 5339 A16C 444A 97BC 032F 2380 8962 FE71 D808 7F83
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import Ember from 'ember'; | |
| import Changeset from 'ember-changeset'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle', | |
| init() { | |
| this._super(...arguments); | |
| this.model = new Ember.Object({ inputValue: 'Hello, World!' }); | |
| this.changeset = new Changeset(this.model, this.validate); |
| Type | |
| Looks | |
| Exorcist | |
| Digital Painting Studio | |
| Poor | |
| Salamander | |
| Crinoline | |
| Lion Books | |
| Pottery | |
| Lightning Magic |
| export default JSONAPIAdapter.extend({ | |
| init() { | |
| this._super(...arguments); | |
| this.xhrRequests = []; | |
| }, | |
| ajaxOptions() { | |
| const options = this._super(...arguments); | |
| const defaultBeforeSend = options.beforeSend; | |
| options.beforeSend = function(xhr) { |
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle', | |
| init() { | |
| this._super(...arguments); | |
| this.set('user', { name: 'vevix' }); | |
| } | |
| }); |
| import Ember from 'ember'; | |
| const LAZY_KEY = 'REQUEST_COMPONENT_TWO_LAZY'; | |
| export default Ember.Component.extend({ | |
| isLoading: true, | |
| lazy: Ember.inject.service(), | |
| init() { | |
| this._super(...arguments); |
| import Base from 'ember-simple-auth/authenticators/base'; | |
| import { remote } from 'budget/adapters/application'; | |
| import RSVP from 'rsvp'; | |
| import run from 'ember-runloop'; | |
| import get from 'ember-metal/get'; | |
| export default Base.extend({ | |
| restore(data) { | |
| return new RSVP.Promise((resolve, reject) => { | |
| if (get(data, 'name')) { |
| -module(Game). | |
| -export([check_anytrips/1, check_two_dice/3]). | |
| check_anytrips(dice_roll) -> | |
| value = num(uniq(dice_roll)), | |
| value == 1. | |
| check_two_dice(dice_roll, key, value) -> | |
| lists:member(dice_roll, key) && lists:member(dice_roll, value). | |
| # Faster random records | |
| module ActiveRecord | |
| class Base | |
| def self.random(limit = 1) | |
| if (total = count) > 0 | |
| highest_possible_offset = [0, total - limit].max | |
| offset = [rand(total), highest_possible_offset].min | |
| num = [limit, total].min | |
| offset(offset).limit(num) | |
| else |