Skip to content

Instantly share code, notes, and snippets.

View SZRabinowitz's full-sized avatar

Shlomo Zalman Rabinowitz SZRabinowitz

  • Jacomsonville, Florida
View GitHub Profile
import TermTk as ttk
root = ttk.TTk(layout=ttk.TTkVBoxLayout())
input = ttk.TTkLineEdit(inputType=ttk.TTkLineEdit.EchoMode.Password, parent=root)
# Should use password mode, but its using int mode
# Not sure if I am doing it wrong or if its a bug
root.mainloop()
@SZRabinowitz
SZRabinowitz / fullyear-cli.go
Created January 5, 2025 06:40
getfullyear.com cli
package main
import (
"encoding/json"
"flag"
"fmt"
"net/http"
)
const apiURL = "https://getfullyear.com/api/year"
┏━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━┓
┃ Team ┃ Score ┃ Team ┃ Score ┃
┡━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━┩
│ Atlanta Braves │ 1 │ Baltimore Orioles │ 3 │
│ Minnesota Twins │ 5 │ Boston Red Sox │ 3 │
│ Washington Nationals │ 8 │ Houston Astros │ 10 │
│ Philadelphia Phillies │ 6 │ Miami Marlins │ 6 │
│ St. Louis Cardinals │ 3 │ New York Mets │ 2 │
│ Detroit Tigers │ 4 │ Philadelphia Phillies │ 2 │
│ Pittsburgh Pirates │ 12 │ Tampa Bay Rays │ 8 │