Skip to content

Instantly share code, notes, and snippets.

View becca-bailey's full-sized avatar

Becca Bailey becca-bailey

View GitHub Profile
@becca-bailey
becca-bailey / clojure-coin-changer.clj
Last active April 8, 2016 18:48
File setup in Clojure
(ns coin-changer.core)
(def coins [25 10 5 1])
(defn find-max-coin [cents]
(loop [possible-coins coins]
(if (>= cents (first possible-coins))
(first possible-coins)
(recur (rest possible-coins)))))
@becca-bailey
becca-bailey / clojure-coin-changer.clj
Created April 8, 2016 18:44
File setup in Clojure
(ns coin-changer-speclj.core)
(def coins [25 10 5 1])
(defn find-max-coin [cents]
(loop [possible-coins coins]
(if (>= cents (first possible-coins))
(first possible-coins)
(recur (rest possible-coins)))))
@becca-bailey
becca-bailey / clojure-test.clj
Last active April 8, 2016 19:07
Clojure.test example
(deftest returns-empty
(testing "Coin changer returns an empty collection if no cents are given"
(is (empty? (make-change 0)))))
(deftest returns-1-penny
(testing "Coin changer returns 1 penny if 1 cents are given"
(is (= [1] (make-change 1)))))
(deftest returns-2-pennies
(testing "Coin changer returns 2 pennies if 2 cents are given"
(describe "coin changer"
(describe "make-change"
(it "returns an empty collection if 0 cents are given"
(should= (make-change 0) []))
(it "returns a penny if 1 cents are given"
(should= (make-change 1) [1]))
@becca-bailey
becca-bailey / sample-travis-speclj.yml
Created May 10, 2016 20:04
Sample .travis.yml for Speclj
language: clojure
script: lein spec
@becca-bailey
becca-bailey / assignment-2.md
Last active June 27, 2017 02:35
Assignment 2

Groups

  • Chicago Javascript meet up group
  • Frontend developers slack
  • Design.football meetup/slack

Explorer Goals

Learning

  1. Complete an in-depth online React course

Assignment 3

  1. [Explorers] Break each of your cohort goals down: what could you do in the next 1 month towards that goal? in the next week? in the next day? Track whether you've completed each daily/weekly goal.

Read JavaScript Design Patterns

  • Month - Finish the book
  • Week - Read three chapters
  • Day - Read one chapter

Complete an online React course

@becca-bailey
becca-bailey / initiate.json
Created August 2, 2017 19:40
Sample initiate request
POST /account/initiate
{
"firstName": "John",
"lastName": "Smith",
"birthDate": "1975-02-28T00:00:00.000-00:00",
"gender": "M",
"taxId": "112223333",
"isSubjectToBackupWithholding": "false",
"isOptedInToBankCommunication": "true",
@becca-bailey
becca-bailey / verify.json
Created August 2, 2017 19:43
Sample verify request
POST /customer/verify
{
"customerId": 298991,
"verificationId": "1691656139",
"answers": [
{
"questionType": "time.at.current.address",
"questionAnswer": "Over 5 years"
},
@becca-bailey
becca-bailey / account-create.json
Created August 2, 2017 19:55
Sample fund create request
{
"customerId": 298991,
"name": "My fund",
"type": "Checking"
}