Skip to content

Instantly share code, notes, and snippets.

Eric Hulburd erichulburd

  • UC Berkeley
  • Berkeley, CA
Block or report user

Report or block erichulburd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
erichulburd / gist:0599a93e36380aaed7c9
Created Dec 5, 2014
User Model Migrations for Rails Devise with login attribue
View gist:0599a93e36380aaed7c9
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
# ...
View house.js
// databasable.js
import Loki from 'lokijs/src/lokijs';
import LokiIndexedAdapter from 'lokijs/src/loki-indexed-adapter';
const DEFAULTS = {
autosave: false
var databasable = {
erichulburd / products.reducer.js
Created Aug 15, 2016
Make sure to return Immutable objects in reducers
View products.reducer.js
[ensureProducts]: (products_data, token)=>{
if (products_data === null){
return loop(
let api = new ProductsApi(token);
return api.index()
erichulburd / routes.js
Last active Sep 29, 2016
configuracion de rutas sin clases
View routes.js
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')}$`),
erichulburd / route.js
Created Sep 29, 2016
Spike Route class
View route.js
import * as S from 'underscore.string';
import queryString from 'query-string';
export default class Route {
let route = this;
route.params = {}; = route_definition;
View route_link.js
View autofill.html
<!-- current component -->
<input type="email"
placeholder="Email Address"
<!-- refactored component -->
View composable_button.js
import React from 'react';
import styles from './styles.scss';
import classnames from 'classnames';
* Button params:
* size: {'xs', 'sm', 'md', 'lg'}
* rounded: {true, false}
* color = {'gray', 'red','blue','green'}
* weight = {'xtralight', 'light', 'normal', 'bold'}

Keybase proof

I hereby claim:

  • I am erichulburd on github.
  • I am erichulburd ( on keybase.
  • I have a public key ASB59L_ZFIs_yV9MGQdr6oRlHCq7Lw5XalGdIclR4Xwpkgo

To claim this, I am signing this object:

View epics1.js
const applyForce = (action$, _store) =>
// Where payload here would be the index of the ball that the user is applying force on.
.map(action => actions.applyForce(action.payload));
You can’t perform that action at this time.