Skip to content

Instantly share code, notes, and snippets.

View bleikamp's full-sized avatar
🌯

Ben Bleikamp bleikamp

🌯
View GitHub Profile
@bleikamp
bleikamp / dots2.md
Last active September 15, 2016 08:12

dots

// Goofing off with JS to learn about map, filter, and reduce
// A deck of cards has 4 suits and 13 ranks
const suits = ['s', 'd', 'c', 'h']
const ranks = ['A', 'K', 'Q', 'J', 'T', '9', '8', '7', '6', '5', '4', '3', '2']
// Turn arrays of ranks and suits into a card deck
// 52 cards
const deck = (ranks, suits) => {
const c = []
2021-01-01 00:00 8040094.216945538
2021-02-01 00:00 95231045.42305152
2021-03-01 00:00 147869652.8364193
2021-04-01 00:00 93661511.54436764
2021-05-01 00:00 138280765.83889315
2021-06-01 00:00 149751456.91688702
2021-07-01 00:00 325961205.1689716
2021-08-01 00:00 3424711477.765007
2021-09-01 00:00 2996580837.2517123
2021-10-01 00:00 77512266.98846982