Skip to content

Instantly share code, notes, and snippets.

let initialState = {
one: 'two',
three: 'four'
}
function update1 (state = initialState, action) {
switch (action.type) {
case SOMETHING: {
return state.one = 'changed'
@eeue56
eeue56 / Base64.elm
Last active February 22, 2016 23:21 — forked from Janiczek/Base64.elm
elm native js
module Base64 (..) where
import Json.Decode
import Task exposing (Task)
import Native.Base64
dimensions : Json.Decode.Value -> Task x { width : Int, height : Int, dataUrl : Json.Decode.Value }
dimensions =
Native.Base64.dimensions
@eeue56
eeue56 / FacebookWordCloud.py
Created February 14, 2012 15:14 — forked from bostwick/FacebookWordCloud.py
Facebook News Feed Word Cloud
#!/usr/bin/env python
import sys
import urllib2
import json
from collections import defaultdict
from nltk import word_tokenize
IGNORED_WORDS = ["!", ".", ",", "(", ")", "'s", ":", "?", "...", "$",