Skip to content

Instantly share code, notes, and snippets.

View handeyeco's full-sized avatar
🦄
🌈🍹🐠🏝

Matthew handeyeco

🦄
🌈🍹🐠🏝
View GitHub Profile
@umayr
umayr / multiple-api-calls-redux-thunk.js
Created December 1, 2016 21:43
Multiple API calls with Redux Thunks.
function doSomething() {
return dispatch =>
fetch(
'/api/something'
).then(
response => response.json()
).then(
json => dispatch({ type: DO_SOMETHING, json }),
err => dispatch({ type: SOMETHING_FAILED, err })
);
@benjaminmiles
benjaminmiles / Low Poly Three.js Mountain Scene.markdown
Created August 25, 2015 17:29
Low Poly Three.js Mountain Scene
#! /usr/bin/python
import Image
#Created by vvdr12
#Fully open license. Have fun.
#change threshold value in 'def contrastpoints' for higher/lower line density.
#put a 'test.jpg' file in the same folder as the code.
#_functions______________________________________________
/* ----------------------------------------------------------------------------------------------------
Super Form Reset
A couple of things to watch out for:
- IE8: If a text input doesn't have padding on all sides or none the text won't be centered.
- The default border sizes on text inputs in all UAs seem to be slightly different. You're better off using custom borders.
- You NEED to set the font-size and family on all form elements
- Search inputs need to have their appearance reset and the box-sizing set to content-box to match other UAs