View feed_seeder.rb
# Sample usage
# cd to book folder
# ruby feed_seeder.rb && dropcaster > index.rss && aws s3 sync . "s3://audiobooks-rss/My Book Name" --acl public-read
require 'colorize'
require 'optparse'
DEFAULT_DESCRIPTION = "Books are cool"
DEFAULT_IMAGE = "https://pbs.twimg.com/profile_images/378800000448533787/c32fb13e160ee7cd17848e8cacbbcfc5_400x400.jpeg"
DEFAULT_PATH = "."
View foo.json
{
"questions": [
{
"id": 1,
"displayName": "Favorite Food?",
"type": "text"
},
{
"id": 2,
"displayName": "Favorite Character Build",
View elm.md

Elm Resources

So you want to learn Elm? Excited to hear it. To get started, its going to help to have some guidance along the way. Below I've collected various helpful resources and tips to get you started.

Starting Out

Things To Do

View elm.md

Elm Resources

So you want to learn Elm? Excited to hear it. To get started, its going to help to have some guidance along the way. Below I've collected various helpful resources and tips to get you started.

Starting Out

Things To Do

View setup.rb
class Package < Struct.new(:command, :name, :opts)
def install!
if not_installed?
system("#{command} install #{name} #{opts.join(" ")}")
end
end
def not_installed?
!exists?
end
View example.css
html {
background: #F7F7F7;
color: red;
height: 100%;
}
body {
min-height: 100%;
}
.wrapper {
View Main.elm
module Main exposing (..)
import Html exposing (Html, div, text)
import Dict exposing (Dict)
names : String -> Dict String (List String)
names str =
str
|> String.split ", "
|> List.map (\name -> String.split " " name)
View either_or.rb
# Structured and Nested
obj = {
container_a = {
name: "Foo",
contents: [item_a, item_b, item_e]
}
container_b = {
name: "Bar",
contents: [item_c, item_d, item_z]
}
View test.rb
it 'sets the state to "gameover" when there is a winner' do
game = Game.new
game.state = "running"
expect { game.winner! }.to change { game.state }.from("running").to("gameover")
end