Compare commits
4 Commits
93e6f695a4
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 241078e41c | |||
| bf2f19bbdc | |||
| e9b5456b5a | |||
| 6e3a58117c |
@@ -7,7 +7,7 @@ My personal dotfiles, shell scripts, and system configurations.
|
|||||||
| Folder | Description |
|
| Folder | Description |
|
||||||
|---|---|
|
|---|---|
|
||||||
| `fastfetch/` | Fastfetch configs and ascii art |
|
| `fastfetch/` | Fastfetch configs and ascii art |
|
||||||
| `scripts/` | General purpose shell scripts |
|
| `scripts/` | General purpose shell scripts, python scripts, ... |
|
||||||
| `scripts/gum/` | Interactive shell scripts using Gum |
|
| `scripts/gum/` | Interactive shell scripts using Gum |
|
||||||
| `vscodium/` | VSCodium settings |
|
| `vscodium/` | VSCodium settings |
|
||||||
| `zsh/` | Zsh config |
|
| `zsh/` | Zsh config |
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
keybind = super+left=goto_split:left
|
||||||
|
keybind = super+right=goto_split:right
|
||||||
|
keybind = super+up=goto_split:top
|
||||||
|
keybind = super+down=goto_split:bottom
|
||||||
|
unfocused-split-opacity = 0.3
|
||||||
|
scrollback-limit = 10000
|
||||||
Executable
+13
@@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import csv, json, sys
|
||||||
|
|
||||||
|
if len(sys.argv) != 3:
|
||||||
|
print("Usage: csv_to_json <input.csv> <output.json>")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
with open(sys.argv[1]) as f:
|
||||||
|
data = list(csv.DictReader(f))
|
||||||
|
|
||||||
|
with open(sys.argv[2], 'w') as f:
|
||||||
|
json.dump(data, f, indent=2)
|
||||||
Executable
+22
@@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import csv, json, sys
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
folder = Path.cwd()
|
||||||
|
csvs = list(folder.glob("*.csv"))
|
||||||
|
|
||||||
|
if not csvs:
|
||||||
|
print("No CSV files found in current folder.")
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
|
for src in csvs:
|
||||||
|
dst = src.with_suffix(".json")
|
||||||
|
try:
|
||||||
|
with open(src) as f:
|
||||||
|
data = list(csv.DictReader(f))
|
||||||
|
with open(dst, 'w') as f:
|
||||||
|
json.dump(data, f, indent=2)
|
||||||
|
print(f"✓ {src.name} → {dst.name}")
|
||||||
|
except Exception as e:
|
||||||
|
print(f"✗ {src.name} failed: {e}")
|
||||||
Reference in New Issue
Block a user