This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let initialState = { | |
| one: 'two', | |
| three: 'four' | |
| } | |
| function update1 (state = initialState, action) { | |
| switch (action.type) { | |
| case SOMETHING: { | |
| return state.one = 'changed' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import sys | |
| import urllib2 | |
| import json | |
| from collections import defaultdict | |
| from nltk import word_tokenize | |
| IGNORED_WORDS = ["!", ".", ",", "(", ")", "'s", ":", "?", "...", "$", |