... to my blog style space for easier contribution by third parties and to provide what I believe to be an easier reading experience. Please field all enquiries and issues to the source repository.
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
| #!/usr/bin/env bun | |
| "use strict"; | |
| const fs = require("fs"); | |
| const { execSync } = require("child_process"); | |
| const path = require("path"); | |
| // ANSI color constants | |
| const c = { | |
| cy: '\033[36m', // cyan |
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
| --- | |
| description: "Use shadcn/ui components as needed for any UI code" | |
| patterns: "*.tsx" | |
| --- | |
| # Shadcn UI Components | |
| This project uses @shadcn/ui for UI components. These are beautifully designed, accessible components that you can copy and paste into your apps. | |
| ## Finding and Using Components |
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
| import numpy as np | |
| import cvxpy as cp | |
| import itertools | |
| # Problem data | |
| global_indices = list(range(4)) | |
| # 0 = TOKEN-0 | |
| # 1 = TOKEN-1 | |
| # 2 = TOKEN-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
| #!/bin/bash | |
| # This script will download the contents of a GitHub repo | |
| # and place them in a local directory. | |
| # | |
| # Usage: | |
| # download-repo.sh <repo> <output-path> <nested-path> <branch-name> | |
| # | |
| # Example: | |
| # download-repo.sh wattenberger/kumiko ./kumiko-assets master public/assets |
Current status : working, but no fingerprint reader and no Fn key before first suspend.
- Lenovo E15 gen2 Ryzen7 4700u 16GB 20T8000TMZ: https://pcsupport.lenovo.com/ch/fr/products/LAPTOPS-AND-NETBOOKS/THINKPAD-EDGE-LAPTOPS/THINKPAD-E15-GEN-2-TYPE-20T8-20T9/20T8/20T8000TMZ
- Added a 970 Evo Plus 1To SSD to the second slot
- size of the second M.2 disk should be 2280, no less no more
- Opened following this tutorial: https://www.youtube.com/watch?v=da0Z4S-j4ro&t=59s
- Also replaced the 8GB RAM module that was not soldered by a 16GB module (total 24GB)
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
| function FetchViaName(executionContext) { | |
| var formContext = executionContext.getFormContext(); | |
| var fullname = null; | |
| var tabObj = formContext.ui.tabs.get("tab_summary"); | |
| var secObj = tabObj.sections.get("sec_contactCompaigns"); | |
| secObj.setVisible(false) | |
| var isUnified = isUCI() | |
| //--------------------------------------Unified Interface----------------------------------------// |
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
| import sqlite3 | |
| import matplotlib.pyplot as plt | |
| import datetime | |
| import numpy as np | |
| conn = sqlite3.connect('Gadgetbridge') | |
| c = conn.cursor() | |
| a=c.execute("select strftime('%Y.%m.%d', datetime(timestamp, 'unixepoch')) as d,sum(STEPS) from MI_BAND_ACTIVITY_SAMPLE group by d").fetchall() | |
| b={x[0]:x[1] for x in a} |
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
| # empty the stash | |
| $ git stash clear | |
| # objects can also be reached through the reflog. | |
| # while branches record the history of some project, reflogs record the history of these branches. | |
| # if you amend, reset etc. commits are removed from the branch history | |
| # but git keeps them around in case you realize that you made a mistake. | |
| # reflogs are a convenient way to find out what destructive (and other) operations were performed | |
| # on a branch (or HEAD), making it easier to undo a destructive operation. |
NewerOlder