This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get a recent version of node installed with npm | |
node --version | |
npm --version | |
// Make a new directory | |
mkdir ts-quickstart | |
cd ts-quickstart | |
// Get everything set up | |
npm init |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- given tables a, b | |
-- equivalent SQLAlchemy models A, B | |
-- a has many b, joined on a_id | |
-- a has l non-id fields, b has m | |
a_id | x1 | x2 | x... | xl | |
b_id | a_id | y1 | y2 | y... | ym | |
-- let's do a joined load: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# let's imagine you didn't care about | |
# the `output_filename` or the `extensions` | |
def decorator(f): | |
def inner(*args, **kwargs): | |
f(*args, **kwargs) | |
save(plt) | |
return inner | |
def plot_something(foo: int, bar: int) -> None: |
NewerOlder