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
| Two pointers: one input, opposite ends | |
| ```python3 | |
| def fn(arr): | |
| left = ans = 0 | |
| right = len(arr) - 1 | |
| while left < right: | |
| # do some logic here with left and right | |
| if CONDITION: |
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 JetBrains Mono, Space Grotesk, Outfit, and Zilla Slab */ | |
| @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@400;500;700&family=Space+Grotesk:wght@400;500;700&family=Zilla+Slab:ital,wght@0,400;0,500;0,700;1,400&display=swap'); | |
| /* Import custom GitButler font */ | |
| @font-face { | |
| font-family: 'But-Head'; | |
| src: url('https://gitbutler.com/_app/immutable/assets/But-Head-Regular.bFy4jtSr.woff2') format('woff2'); | |
| font-weight: normal; | |
| font-style: normal; | |
| } |
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
| docker run -d \ | |
| --name llama-embedding \ | |
| --restart unless-stopped \ | |
| --gpus all \ | |
| -v ~/.models:/models \ | |
| -p 8080:8080 \ | |
| ghcr.io/ggml-org/llama.cpp:server-cuda \ | |
| -m /models/Qwen3-Embedding-4B-Q8_0.gguf \ | |
| --embedding \ | |
| --pooling last \ |
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
| # compressing one item | |
| tar -I 'zstd -T0' -cf ARCHIVE_NAME.tar.zst TARGET_DIR/ | |
| # compressing multiple items | |
| tar -I 'zstd -T0' -cf ARCHIVE_NAME.tar.zst TARGET_DIR_1/ TARGET_ITEM_1 TARGET_DIR_2/ |