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
name: Publish to PyPI | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
pypi-publish: | |
name: upload release to PyPI |
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 nicegui import ui | |
@ui.refreshable | |
def app(): | |
username, set_username = ui.state("") | |
with ui.header(): | |
with ui.tabs().classes("w-full") as tabs: |
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
provider "aws" { | |
region = "us-east-1" | |
} | |
data "aws_s3_bucket" "dev" { | |
bucket = "..." | |
} | |
# Create a data source for each file in dags folder | |
data "local_file" "dags" { |
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 apispec import APISpec | |
from chalice import Chalice, BadRequestError, Response | |
from chalice_spec import PydanticPlugin, ChalicePlugin, Docs, Operation | |
from pydantic import BaseModel, ValidationError | |
APP_NAME = "chalice-spec example" | |
app = Chalice(app_name=APP_NAME) | |
spec = APISpec( |
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
import streamlit as st | |
def login_form(): | |
if not ("username" in st.session_state and "password" in st.session_state): | |
st.write("## Login") | |
with st.form("Login"): |
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
import json | |
import shlex | |
import subprocess as sp | |
from pprint import pprint | |
registry = "foo" | |
schema_name = "bar" | |
cmd = f"aws schemas describe-schema --registry-name={registry} --schema-name={schema_name}" |
I hereby claim:
- I am knowsuchagency on github.
- I am knowsuchagency (https://keybase.io/knowsuchagency) on keybase.
- I have a public key ASAKuhfVCmbp9CQYo_XqUJbZimqKmucZbnvt8kVnW2iSggo
To claim this, I am signing this object:
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
import requests | |
from pprint import pprint | |
def get_prefixes(region='us-east-2', service='AMAZON'): | |
resp = requests.get('https://ip-ranges.amazonaws.com/ip-ranges.json') | |
prefixes = resp.json()['prefixes'] | |
if region: |
NewerOlder