Skip to content

Instantly share code, notes, and snippets.

View armatures's full-sized avatar

Charlie Bevis armatures

View GitHub Profile
type Msg
= Select Int
| Fetch (Result Http.Error WordListWithIndex)
| SplitWord Int Int
| SubMsg WordDetail.Msg
viewInitialSearch : InitialSearch -> Html Msg
viewInitialSearch initialSearch =
let
@armatures
armatures / elm-workstation-setup.sh
Last active June 30, 2016 18:26
Quick setup for elm development with atom
#!/usr/bin/env bash
brew install elm
brew install Caskroom/cask/atom
apm install linter
apm install language-elm
apm install linter-elm-make
git clone https://github.com/charliebevis/elm-architecture-tutorial.git
cd elm-architecture-tutorial/
require 'rubygems'
require 'mechanize'
FIRST_NAME = 'FIRST_NAME'
LAST_NAME = 'LAST_NAME'
PHONE = 'PHONE'
EMAIL = '[email protected]'
PARTY_SIZE = 2
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' }
@armatures
armatures / gist:5328352
Last active December 15, 2015 21:49 — forked from tippenein/gist:5328240
Ruby script to grab podcasts from KFAI's Jet Set Planet radio show. Updated to check if files are already in current directory before downloading.
require 'net/http'
require 'open-uri'
uri = URI('http://kfai.org/jet-set-planet')
body = Net::HTTP.get(uri)
body.scan(/https?:\/\/[\S]+.mp3/).each do |link|
filename = link.match(/([^\/]+$)/)