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
| ///////////////////////////////////////////////// | |
| // Simon Says - Arduino | |
| // LEDs + Buzzer + 1 Button Input | |
| ///////////////////////////////////////////////// | |
| #define LEDS 6 | |
| int leds[] = {13,12,11,10,9,8}; | |
| int btn = 2; | |
| int buz = 4; |
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
| """ente_json_to_exif.py | |
| Prereqs | |
| - Python 3.9+ | |
| - ExifTool installed and on PATH | |
| macOS (Homebrew): brew install exiftool | |
| - Python dependency: | |
| pip install tqdm | |
| Usage |
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 | |
| # Setup Instructions: | |
| # After creating this script, run the following commands: | |
| # 1. Change ownership to your user (if needed): | |
| # sudo chown tn:tn ~/self/battery_monitor.sh | |
| # 2. Make the script executable: | |
| # chmod +x ~/self/battery_monitor.sh | |
| # 3. Edit crontab to schedule the script: | |
| # crontab -e |
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 | |
| # Make the script executable: chmod +x reset_cursor_id_unix.sh | |
| # Run the script: ./reset_cursor_id_unix.sh | |
| # Display the important message on the terminal | |
| echo "=========================================" | |
| echo "IMPORTANT: Please read the README carefully before running the script for the best results." | |
| echo "=========================================" |
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
| -- Folder: nvim_backup/lua/custom/cmdline.lua | |
| local cmp = require("cmp") | |
| -- Command-line completion for : | |
| cmp.setup.cmdline(":", { | |
| mapping = cmp.mapping.preset.cmdline(), | |
| sources = { | |
| { name = "cmdline" }, -- provides command completions | |
| }, |
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 python3 | |
| #------------------------------------------------------ | |
| # | |
| # This is a program for PCF8591 Module. | |
| # | |
| # Warnng! The Analog input MUST NOT be over 3.3V! | |
| # | |
| # In this script, we use a poteniometer for analog | |
| # input, and a LED on AO for analog output. | |
| # |