- Separate out processed and raw data in the
data/
folder. - Include README.md files within each folder containing data files; also utilize the Issues tab in GitHub more often.
- Utilizes branches in the GitHub workflow, and keep the master branch's data folder "clean," so to speak.
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
#!/bin/bash | |
set -euxo pipefail | |
############################################################################### | |
# Notes: | |
# - Caveat emptor. Script is presented as is, no warranty expressed, etc. | |
# - Requires uv to be installed | |
# - Set the environment variables + any other env vars you need to run dbt. | |
# - This script will delete your .venv; be careful. Set env vars correctly! | |
############################################################################### |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
from pydantic import BaseModel, ConstrainedStr, StrictStr | |
class MyStr(ConstrainedStr): | |
to_upper = True | |
class Foo(BaseModel): | |
x: str | |
class Bar(BaseModel): | |
x: MyStr |
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
#!/bin/bash | |
set -eo pipefail | |
function maybe_make_a_volume_adjustment { | |
volume=`osascript -e "input volume of (get volume settings)"`; | |
(( vol_adj=((volume+50)/2-volume)/5 )); | |
if [ ${vol_adj} -lt 0 ] | |
then | |
sign="-" |
We can't make this file beautiful and searchable because it's too large.
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
Data Format: | |
dateTimeDelimiter: " " | |
decimalSeparator: "." | |
dataDelimiter: "," | |
dateFormat: MM/dd/yy | |
timeFormat: HH:mm:ss | |
gmtOffset: -5 | |
daylightSavings: false | |
Logger Info: |
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 2.
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
Data Format: | |
dateTimeDelimiter: " " | |
decimalSeparator: "." | |
dataDelimiter: "," | |
dateFormat: MM/dd/yy | |
timeFormat: HH:mm:ss | |
gmtOffset: -5 | |
daylightSavings: true | |
Logger Info: |
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
""" | |
Definitions of various constants. Adjust based on project structure and needs. | |
""" | |
import os | |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
# Files and Directories | |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder