I hereby claim:
- I am ericso on github.
- I am ericso (https://keybase.io/ericso) on keybase.
- I have a public key whose fingerprint is DC50 816E 1600 B559 D9DD 69CF 5F8E A172 9155 C5C9
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
from application import db | |
from app.models import User | |
from common.tests import BaseTestCase | |
from common.util import rand_string_gen | |
class UsersTest(BaseTestCase): | |
def setUp(self): | |
with self.app.app_context(): | |
db.create_all() |
// Least Recently Used cache | |
// Implement a data structure to store keys for a LRU cache | |
/* | |
doubly linked list to hold order of keys | |
front of list is the most recently used key | |
back of list is the least recently used key | |
dictionary holds references to each node in the linked list | |
keys are the keys being held |
// memory manager | |
/** | |
* Simulate a buffer of memory using an Array. | |
* Creating the memory manager would consist of calling the constructor of MemoryManager with a pointer | |
* to the buffer and the size of the buffer. Since we're simulating this, and you can't pass a reference | |
* to an array in Javascript, let's just create the array in the MemoryManager. | |
*/ | |
class MemoryManager { |
// memory manager | |
/** | |
* Simulate a buffer of memory using an Array. | |
* Creating the memory manager would consist of calling the constructor of MemoryManager with a pointer | |
* to the buffer and the size of the buffer. Since we're simulating this, and you can't pass a reference | |
* to an array in Javascript, let's just create the array in the MemoryManager. | |
*/ | |
class MemoryManager { |
I decided to break the work into two git repositories: a frontend and a backend repo.
https://github.com/ericso/haus-backend
Deployed at: https://es-haus-backend.herokuapp.com/
There is no root resolver for the backend.
# Write your query or mutation here | |
query Drugs($ndc: String, $gpi: String, $label_name: String, $status: String) { | |
drugs( | |
pagination: { | |
page: 1, | |
perPage: 20 | |
} | |
where: { | |
ndc: { | |
like: $ndc |
query DrugPrices($ndc: String) { | |
drug_prices( | |
pagination: { | |
page: 1, | |
perPage: 20 | |
} | |
where: { | |
ndc: { | |
like: $ndc | |
} |
query DrugGpis($tc_gpi_key: String, $record_type_code: String, $tc_gpi_name: String) { | |
drug_gpis( | |
pagination: { | |
page: 1, | |
perPage: 20 | |
} | |
where: { | |
tc_gpi_key: { | |
like: $tc_gpi_key | |
} |