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 random import shuffle | |
import csv | |
############################################################################### | |
## PARAMETERS | |
############################################################################### | |
# STARTING HANDS | |
# Cards are ordinally ranked from 1 (best) to 99 (worst) |
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="-" |
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 |
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
#!/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! | |
############################################################################### |
OlderNewer