models:
- name: Qwen3 Reranker 0.6B
provider: transformers.js
model: zhiqing/Qwen3-Reranker-0.6B-ONNX
roles:
- rerank
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
BASH_ENV=~/.bashrc exec bash -c "$*" |
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 swift | |
import AppKit | |
// Function to get the frontmost window | |
func getFrontmostWindow() -> AXUIElement? { | |
guard let app = NSWorkspace.shared.frontmostApplication else { | |
return nil | |
} | |
let appElement = AXUIElementCreateApplication(app.processIdentifier) |
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
# Source: https://utcc.utoronto.ca/~cks/space/blog/programming/BashGoodSetEReports | |
trap 'echo "Exit status $? at line $LINENO from: $BASH_COMMAND"' ERR |
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
# strict: true | |
# File organization | |
# included: | |
# - Sources | |
# - Tests | |
excluded: | |
- .build | |
- .swiftpm | |
- DerivedData |
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
--swiftversion 5.9 | |
# Opt-in rule config | |
--disable all | |
# Explicitly disabled (opt-in) rules: | |
# See: https://github.com/nicklockwood/SwiftFormat/blob/main/Rules.md#acronyms | |
--disable acronyms |
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
// 1. Decorate the class itself with e.g. @MainActor | |
// 2. If that isn't possible, here is an example workaround: | |
deinit { | |
nonisolated(unsafe) let obj = self | |
MainActor.assumeIsolated { | |
obj.dismiss(animated: false) | |
} | |
} |
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
print(Unmanaged.passUnretained(self).toOpaque()) |
NewerOlder