Skip to content

Instantly share code, notes, and snippets.

View RBangel's full-sized avatar

Raelyn Bangel RBangel

View GitHub Profile

Keybase proof

I hereby claim:

  • I am rbangel on github.
  • I am raelyn (https://keybase.io/raelyn) on keybase.
  • I have a public key ASDVBbPS5yfKmZH-ygEhvNp0pKfBB8X6X2Fh1tBfxJuYLgo

To claim this, I am signing this object:

# Functional version
count = ->(b) { if b > 0 then "#{b}" else "no more" end }
plural = ->(b) { if b == 1 then "" else "s" end }
pronoun = ->(b) { if b == 1 then "it" else "one" end }
wall = -> (d) { if d then " on the wall" else "" end }
$bottles = ->(b, d) { "#{count.call(b)} bottle#{plural.call(b)} of beer#{wall.call(d)}" }
$take_one = ->(b) { "Take #{pronoun.call(b)} down and pass it around" }
$take_none = ->() { "Go to the store and buy some more" }
(ns wunderground.core
(:require [clj-http.client :as client])
(:require [clojure.data.json :as json]))
(def APIKey "key")
(def WStation "KALMADIS1")
; (def Feature "/conditions")
(def Feature "/history_20140418")
(def Wurl (str "http://api.wunderground.com/api/"
APIKey