Skip to content

Instantly share code, notes, and snippets.

View bsatlas's full-sized avatar

Brian Atlas bsatlas

View GitHub Profile
type Hello struct {
Name string
File string
}
helloCmd := &cli.Command[Hello]{
Use: "hello <name> <file>",
Short: "Say hello to someone, using a file",
Flags: func(f *cli.Flags[Hello]) {
// regular flags
[font]
size = 11.0
[font.normal]
family = "Hack"
style = "Regular"
[colors.primary]
background = '#282a36'
foreground = '#f8f8f2'
py3status {
output_format = "i3bar"
}
order += "clock"
order += "wifi"
order += "battery_level"
clock {
# start a terminal
bindsym $mod+Return exec alacritty
# start Google Chrome
bindsym $mod+b exec google-chrome-stable
# start Slack
bindsym $mod+s+l exec slack
# start Okular
# Monitors
#output HDMI-A-1 resolution 1920x1080 position 1920,0
#output HDMI-A-1 resolution 3840x2160@60Hz position 0,0
output eDP-1 resolution 1920x1080 position 0,0
#output eDP-2 resolution 1920x1080 position 1920,0
output HDMI-A-1 resolution 1366x768 position 1920,0
#output DP-4 resolution 1920x1080 position 1920,0
#output DP-3 resolution 1920x1080 position 1920,0
#output DP-3 resolution 3840x2160@60Hz position 1920,0
set $mod Mod4
include hotkeys
include workspaces
# Font for window titles
font Hack Regular 12, FontAwesome 12
#font FontAwesome 12
# Use Mouse+$mod to drag floating windows to their wanted position
package dag
//go:generate go run ../internal/cmd/graph-gen-scaffold --type dag --section graph --path .
import (
"github.com/abstractionsinc/go-graph"
)
// SortAlgorithm defines supported sorting strategies for DAG execution.
//
package main
import (
"fmt"
"github.com/dave/jennifer/jen"
)
func snippetBuilderType(f *jen.File) {
fields := []jen.Code{
package dag
//go:generate go run ../internal/cmd/graph-gen-scaffold --type dag --section builder --path .
import (
"fmt"
"github.com/abstractionsinc/go-graph"
"github.com/abstractionsinc/go-graph/internal/core"
)
-- =====================================================================
-- File: db/migrations/0001_pantropy_schema.sql
-- Purpose: Pantropy core schema (global DAG, plugins, runs, contexts,
-- plan/apply, events, audit). Rich comments on every table/attr.
-- Notes: Run idempotently. Uses uuid-ossp and citext optionally.
-- =====================================================================
-- Extensions ------------------------------------------------------------
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; -- UUID generation for PKs
CREATE EXTENSION IF NOT EXISTS citext; -- Case-insensitive text (optional)