This file contains hidden or 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
| package require Tk | |
| set count 0 | |
| # Label that displays the count | |
| label .lbl -text "Count: $count" -font {Helvetica 18} | |
| pack .lbl -padx 20 -pady 10 | |
| proc update {} { | |
| global count |
This file contains hidden or 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
| # =========================================== | |
| # ZSH Hacks - Dreams of Code | |
| # =========================================== | |
| # Add these to your .zshrc file | |
| # =========================================== | |
| # ------------------------------------------- | |
| # 1. Edit Command Buffer | |
| # ------------------------------------------- | |
| # Open the current command in your $EDITOR (e.g., neovim) |
This file contains hidden or 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
| system.activationScripts.applications.text = let | |
| env = pkgs.buildEnv { | |
| name = "system-applications"; | |
| paths = config.environment.systemPackages; | |
| pathsToLink = "/Applications"; | |
| }; | |
| in | |
| pkgs.lib.mkForce '' | |
| # Set up applications. | |
| echo "setting up /Applications..." >&2 |
This file contains hidden or 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
| package main | |
| import ( | |
| "encoding/json" | |
| "log" | |
| ) | |
| type Response[T any] struct { | |
| Status string `json:"status"` | |
| Data T `json:"data"` |
This file contains hidden or 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
| package main | |
| import ( | |
| "encoding/json" | |
| "log" | |
| ) | |
| type Response struct { | |
| Status string `json:"status"` | |
| Data json.RawMessage `json:"data"` |