Skip to content

Instantly share code, notes, and snippets.

View dpeng817's full-sized avatar

Christopher DeCarolis dpeng817

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Function to create a git worktree with UV environment setup
create_worktree() {
local branch_name="$1"
local start_branch="$2"
# Validate arguments
if [[ -z "$branch_name" ]]; then
echo "Usage: create_worktree <branch_name> [start_branch]"
echo "Example: create_worktree my-feature-branch master"
echo " create_worktree my-feature-branch # uses current branch"
@dpeng817
dpeng817 / freshness_checks_example.py
Last active May 24, 2024 21:19
Freshness checks example code
from dagster import (
build_time_partition_freshness_checks,
build_sensor_for_freshness_checks,
AssetCheckSeverity,
JobDefinition,
AssetChecksDefinition
)
from typing import Dict, Optional
import json