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:
# 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 |
{ | |
"patient": { | |
"birth_date": "19XX-XX-XX", | |
"first_name": "BRIAN", | |
"id": "WXXXXXXXXX", | |
"last_name": "CORBIN" | |
}, | |
"provider": { | |
"first_name": "CHRISTINA", | |
"last_name": "BERTOLAMI", |
{ | |
"patient": { | |
"claims": [ | |
{ | |
"adjudication_finalized_date": "2014-10-11", | |
"applied_to_deductible": true, | |
"claim_control_number": "E535HB9CW00", | |
"claim_payment_amount": { | |
"amount": "0", | |
"currency": "USD" |
{ | |
"billing_provider": { | |
"address": { | |
"address_lines": [ | |
"1703 John B White Blvd, Unit A" | |
], | |
"city": "SPARTANBURG", | |
"state": "SC", | |
"zipcode": "29301" | |
}, |
{ | |
"summary": { | |
"deductible": { | |
"family": { | |
"in_network": { | |
"applied": { | |
"amount": "2153.41", | |
"currency": "USD" | |
}, | |
"limit": { |
I hereby claim:
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: |
@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)), |
{ | |
"date_of_birth": "01/01/1970", | |
"email": "corbinbs@example.com", | |
"first_name": "Brian", | |
"last_name": "Corbin" | |
} |
""" | |
Demo of json_required decorator for API input validation/error handling | |
""" | |
import inspect | |
import functools | |
import json | |
from traceback import format_exception | |
from flask import jsonify, request | |
import sys |