Skip to content

Instantly share code, notes, and snippets.

View laere's full-sized avatar
🎯
Focusing

Zack laere

🎯
Focusing
  • Grand Rapids, MI
View GitHub Profile
@laere
laere / FetchActionCreators.js
Created March 14, 2016 18:28 — forked from l0gicgate/FetchActionCreators.js
Reusable action creators / reducers.
import axios from 'axios';
class FetchActionCreators {
constructor(endpoint, actions) {
const [REQUEST, SUCCESS, FAILURE] = actions;
this.actions = {
REQUEST,
SUCCESS,
FAILURE,
@laere
laere / reset-rems
Created January 28, 2016 16:37 — forked from mrwweb/reset-rems
"Sanity-ize" REMs by setting them to 10px-baseline aka "Tiny Happy Pixels Dancing."
/* this is the "root" in "root em." */
html {
font-size: 62.5%; /* Now 10px = 1rem! */
}
body {
font-size: 16px; /* px fallback */
font-size: 1.6rem; /* default font-size for document */
line-height: 1.5; /* a nice line-height */
}