Skip to content

Instantly share code, notes, and snippets.

View corbinbs's full-sized avatar
💭
🚜💻📈

Brian S. Corbin corbinbs

💭
🚜💻📈
View GitHub Profile
@corbinbs
corbinbs / coffee-and-code-meetup-2021-10-09-links.md
Created October 9, 2021 13:52
2021-10-09 hub.py coffee and code meet up links
@corbinbs
corbinbs / viola_sleep_assistant.py
Created July 10, 2019 00:41
Circuit Playground Express Sleep Assistant for Toddlers ( https://www.adafruit.com/product/3333 )
# a fun sleep assistant for toddlers adapting to life in a "big bed"
# when the circuit playground express lights up, it's OK to get up.
# if the playground is not yet lit up, please let the parent(s) sleep just a
# little longer...
import time
import audioio
import board
from digitalio import DigitalInOut, Direction, Pull
import neopixel
@corbinbs
corbinbs / corbin_claims_status_api_request.json
Created October 13, 2014 15:45
PokitDok Platform Claims status API request
{
"patient": {
"birth_date": "19XX-XX-XX",
"first_name": "BRIAN",
"id": "WXXXXXXXXX",
"last_name": "CORBIN"
},
"provider": {
"first_name": "CHRISTINA",
"last_name": "BERTOLAMI",
@corbinbs
corbinbs / corbin_claims_status_api_response.json
Last active August 29, 2015 14:07
PokitDok Platform Claims status API response
{
"patient": {
"claims": [
{
"adjudication_finalized_date": "2014-10-11",
"applied_to_deductible": true,
"claim_control_number": "E535HB9CW00",
"claim_payment_amount": {
"amount": "0",
"currency": "USD"
@corbinbs
corbinbs / corbin_claims_api_request.json
Last active August 29, 2015 14:07
PokitDok Platform claims API request
{
"billing_provider": {
"address": {
"address_lines": [
"1703 John B White Blvd, Unit A"
],
"city": "SPARTANBURG",
"state": "SC",
"zipcode": "29301"
},
@corbinbs
corbinbs / corbin_eligibility_api_response_summary.json
Last active August 29, 2015 14:07
PokitDok Platform eligibility API response summary
{
"summary": {
"deductible": {
"family": {
"in_network": {
"applied": {
"amount": "2153.41",
"currency": "USD"
},
"limit": {
@corbinbs
corbinbs / keybase.md
Created August 14, 2014 14:19
Keybase proof

Keybase proof

I hereby claim:

  • I am corbinbs on github.
  • I am corbinbs (https://keybase.io/corbinbs) on keybase.
  • I have a public key whose fingerprint is A16F FFC6 0789 FCBA ABA8 CB51 9128 64D8 41D1 4FD9

To claim this, I am signing this object:

#!/usr/bin/env bash
#
# superpack.sh:
#
# Define components you need to do work.
# Quickly.
# Superpack downloads/installs stuff so you don't have to.
# Blast new developers into productivity on their first day.
#
# Usage:
@corbinbs
corbinbs / json_required_example.py
Created October 2, 2012 18:12
Flask JSON Required Example
@app.route("/do/something", methods=['POST'])
@json_required(
required_fields={
'first_name':"Please enter your first name.",
'last_name':"Please enter your last name.",
'email':'Please specify a valid email address',
'date_of_birth':'Please enter your date of birth'
},
validations=[
('email', 'Please specify a valid email address', lambda email: email is not None and EMAIL_REGEX.match(email)),