I hereby claim:
- I am erichulburd on github.
- I am erichulburd (https://keybase.io/erichulburd) on keybase.
- I have a public key ASB59L_ZFIs_yV9MGQdr6oRlHCq7Lw5XalGdIclR4Xwpkgo
To claim this, I am signing this object:
class User < ActiveRecord::Base | |
# Include default devise modules. Others available are: | |
# :confirmable, :lockable, :timeoutable and :omniauthable | |
devise :database_authenticatable, :registerable, | |
:recoverable, :rememberable, :trackable, :validatable, | |
:authentication_keys => [:login] | |
attr_accessor :login | |
# ... |
// databasable.js | |
import Loki from 'lokijs/src/lokijs'; | |
import LokiIndexedAdapter from 'lokijs/src/loki-indexed-adapter'; | |
const DEFAULTS = { | |
autosave: false | |
}; | |
var databasable = { |
[ensureProducts]: (products_data, token)=>{ | |
if (products_data === null){ | |
return loop( | |
products_data, | |
Effects.promise(()=>{ | |
let api = new ProductsApi(token); | |
return api.index() | |
.then(productsRetrieved) | |
}) | |
) |
import Route from './route'; | |
export function defineRoutes(i18n) { | |
let routes = [ | |
{ | |
name: 'Home', | |
path: new RegExp('^\/?((\\w{2})\/?)?$'), | |
parameters: {2: 'locale'} | |
}, { | |
name: 'Dashboard', | |
path: new RegExp(`^\/?((\\w{2})\/?)?${i18n.t('dashboard')}$`), |
import * as S from 'underscore.string'; | |
import queryString from 'query-string'; | |
export default class Route { | |
constructor(route_definition){ | |
let route = this; | |
route.params = {}; | |
route.data = route_definition; | |
} |
/*global module*/ | |
import React from 'react'; | |
import template from './route_link.rt.html'; | |
import ApplicationComponent from 'shared/lib/base_classes/application_component'; | |
class RouteLinkComponent extends ApplicationComponent { | |
get template(){ |
<!-- current component --> | |
<input type="email" | |
name="email" | |
class="form-control" | |
placeholder="Email Address" | |
value="{this.login.email}" | |
onChange="{this.loginFieldChanged.bind(this)}" | |
required/> | |
<!-- refactored component --> |
I hereby claim:
To claim this, I am signing this object:
const applyForce = (action$, _store) => | |
action$.ofType(actions.APPLY_FORCE_CLICK) | |
.throttleTime(100) | |
// Where payload here would be the index of the ball that the user is applying force on. | |
.map(action => actions.applyForce(action.payload)); |