Skip to content

Instantly share code, notes, and snippets.

View scottfrazer's full-sized avatar
👋

Scott Frazer scottfrazer

👋
View GitHub Profile
2024-01-01T13:24:21Z,(31.358326 -110.898483),47
2024-01-03T04:48:26Z,(40.076100 -99.186962),62
2024-01-03T19:24:37Z,(36.965582 -79.220435),81
2024-01-04T01:57:57Z,(29.541731 -81.196723),62
2024-01-04T02:04:39Z,(41.705279 -83.527452),87
2024-01-04T14:37:25Z,(34.473823 -111.519154),33
2024-01-05T03:23:26Z,(30.784318 -98.622871),28
2024-01-05T17:33:42Z,(26.555157 -95.166334),98
2024-01-05T18:10:38Z,(37.818018 -111.805112),4
2024-01-06T22:31:56Z,(40.267284 -81.770746),86
10/16/2024 05:16:41 4.65 mi 09:40
10/15/2024 10:10:57 7.22 mi 08:12
10/14/2024 13:14:00 7.09 mi 07:52
10/13/2024 09:43:16 4.22 mi 08:49
10/11/2024 08:00:51 21.01 mi 08:24
10/10/2024 08:19:45 5.35 mi 08:25
10/09/2024 06:30:18 0.66 mi 08:52
10/09/2024 05:14:24 4.71 mi 08:58
10/08/2024 10:12:46 7.05 mi 08:34
10/07/2024 05:11:43 7.03 mi 09:07

Using the Deck Of Cards API (https://deckofcardsapi.com/), write a program that does the following:

  1. Create a new shuffled deck
  2. Draw cards one at a time from the deck
  3. When a card is drawn, print it out in any format that includes number and suit (e.g. "JACK of SPADES" or "7H")
  4. If any three consecutive cards add up to a value of 21 using blackjack rules (see below), exit the program
  5. If all cards are drawn from the deck and no three consecutive cards add up to a value of 21, print "no more cards"

The "blackjack value" of a card can be defined as follows:

Using the Deck Of Cards API (https://deckofcardsapi.com/), write a program that does the following:

  1. Create a new shuffled deck
  2. Draw cards one at a time from the deck
  3. When a card is drawn, print it out in any format that includes number and suit (e.g. "JACK of SPADES" or "7H")
  4. If any three consecutive cards add up to a value of 21 using blackjack rules (see below), exit the program
  5. If all cards are drawn from the deck and no three consecutive cards add up to a value of 21, print "no more cards"

The "blackjack value" of a card can be defined as follows:

package main
// Write a HashMap implementation where the get and set operations
// have a runtime of O(1)
import (
"fmt"
"hash/fnv"
)
@scottfrazer
scottfrazer / coding.md
Last active June 30, 2022 12:48
Coding Challenge

Part 1

Using the Deck Of Cards API (https://deckofcardsapi.com/), write a program that does the following:

  1. Create a new shuffled deck
  2. Draw cards one at a time from the deck
  3. When a card is drawn, print it out in any format that includes number and suit (e.g. "JACK of SPADES" or "7H")
  4. If any three consecutive cards add up to a value of 21 using blackjack rules (see below), exit the program
  5. If all cards are drawn from the deck and no three consecutive cards add up to a value of 21, print "no more cards"

combined

concepts_2:

{
    "_id": "UMLS:ICD10CM:C50",
    "category": "Diagnosis",
    "chronicIndicator": "U",
    "code": "C50",
# Redis configuration file example.
#
# Note that in order to read the configuration file, Redis must be
# started with the file path as first argument:
#
# ./redis-server /path/to/redis.conf
# Note on units: when memory size is needed, it is possible to specify
# it in the usual form of 1k 5GB 4M and so forth:
#
npm http GET https://registry.npmjs.org/angular-modal-service
npm http GET https://registry.npmjs.org/angular-ui-router
npm http GET https://registry.npmjs.org/angular-sanitize
npm http GET https://registry.npmjs.org/breakpoint-sass
npm http GET https://registry.npmjs.org/angular-translate
npm http GET https://registry.npmjs.org/d3
npm http GET https://registry.npmjs.org/filesaver.js
npm http GET https://registry.npmjs.org/hopscotch
npm http GET https://registry.npmjs.org/immutable
npm http GET https://registry.npmjs.org/in-viewport

wdl4s wdl_refactor Branch

This was created based on 0.19 code with the goal to clean up the API and push WDL-specific code that existed in Cromwell down into the wdl4s library.

Goals / Implementation Plan

What's currently implemented

  • Cleaner API and separate out lexical vs. graph relationships
  • Nested scatter support