- Copy to ~/Library/LaunchAgents/com.hidutilKeyMapping.plist
- Open System Settings > Privacy & Security > Input Monitoring and add /usr/bin/hidutil (Hint: Cmd Up will open parent folder and Cmd Shift . will reveal hidden files)
- Verify hdutil present in System Settings > General > Login Items & Extensions
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 os | |
| models = { | |
| "all-minilm": ["l6-v2"], | |
| "deepseek-r1": ["1.5b", "7b", "8b", "14b", "32b", "70b"], | |
| "devstral": ["24b"], | |
| "gemma3": ["1b-it-qat", "4b-it-qat", "12b-it-qat", "27b-it-qat", "1b", "4b", "12b", "27b"], | |
| "llama3.2": ["1b", "3b"], | |
| "llama3.3": ["70b"], |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Battery_state</key> | |
| <false/> | |
| <key>CPU_barChart_position</key> | |
| <integer>0</integer> | |
| <key>CPU_bar_chart_box</key> | |
| <true/> |
To replace "iz" with "is" in LATEX documents:
- find
(?<!\\(?:cite|href|url)\{[^}]*)(\b(?!size\b|sizes\b|sized\b|downsize\b|footnotesize\b|BSize\b|resized\b|quantize\b|quantization\b|horizontally\b|itemize\b|scriptsize\b|resize\b|horizontal\b|Webviz\b|OdoViz\b)\w*)iz(\w*\b)
- replace
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 bibtexparser | |
| from collections import defaultdict | |
| # Replace 'yourfile.bib' with the path to your BibTeX file | |
| bibtex_filename = 'root.bib' | |
| # Load the BibTeX file | |
| with open(bibtex_filename, encoding='utf-8') as bibtex_file: | |
| bib_database = bibtexparser.load(bibtex_file) |
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
| SC110::Send, {Home} | |
| SC119::Send, {End} | |
| SC124::Send, {PgUp} | |
| SC122::Send, {PgDn} | |
| +SC110::Send, +{Home} | |
| +SC119::Send, +{End} | |
| +SC124::Send, +{PgUp} | |
| +SC122::Send, +{PgDn} |
In dependency.py, add a new update fn in DependencyGraph
def _update_glu_index_mapping(self, glu_node: Node):
if glu_node.type != ops.OPTYPE.GLU:
return
# GLU halves the number of channels by applying sigmoid
input_node = glu_node.inputs[0]
in_channels = self.get_out_channels(input_node)
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
| repos: | |
| - repo: https://github.com/astral-sh/ruff-pre-commit | |
| rev: v0.2.2 | |
| hooks: | |
| - id: ruff | |
| args: [ --fix ] | |
| - id: ruff-format | |
| - repo: https://github.com/pre-commit/mirrors-mypy | |
| rev: v1.8.0 | |
| hooks: |
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
| from pathlib import Path | |
| import subprocess | |
| import argparse | |
| def find_and_append_images_with_pathlib(directory): | |
| """ | |
| Adjusted script using pathlib to find images in the specified directory with a given pattern | |
| and append them horizontally using the 'convert' command from ImageMagick. | |
| It supports both .jpg and .png files and handles different suffix patterns. |
NewerOlder