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 | |
| """ | |
| Transparent Anthropic API proxy that fixes prompt-cache breakpoint placement | |
| for our stage-1/stage-2 labeling subagents. | |
| Problem: Claude Code sends STAGE1 (the big taxonomy prompt) and the per-item | |
| request as ONE text block in the user message, and auto-caches the whole block. | |
| Since the item varies per subagent, the cached unit is unique → each subagent | |
| WRITES the 37k STAGE1 instead of READING a shared copy. |
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/sh /etc/rc.common | |
| # chmod +x /etc/init.d/inadyn | |
| # /etc/init.d/inadyn enable | |
| # /etc/init.d/inadyn start | |
| START=50 | |
| STOP=50 | |
| USE_PROCD=1 |
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
| [ | |
| { | |
| "name": "sp84.left" | |
| }, | |
| [ | |
| { | |
| "x": 2.5, | |
| "a": 6 | |
| }, | |
| "Esc", |
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
| interface BaseCreateWidgetParam { | |
| show_level: hmUI.show_level | |
| } | |
| interface ImageParam extends BaseCreateWidgetParam{ | |
| /** | |
| * The path of the image. Reference folder-structure structure. | |
| */ | |
| src: string | |
| /** |
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
| # Copyright (c) 2022 Meteozond | |
| # The PostProcessingPlugin is released under the terms of the AGPLv3 or higher. | |
| import json | |
| import traceback | |
| from ..Script import Script | |
| class TemplateAtLayerChange(Script): |
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
| open \ | |
| --env ALL_PROXY="socks5://127.0.0.1:9150" \ | |
| /Applications/Transmission.app | |
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
| [ | |
| [ | |
| { | |
| "x": 0.5 | |
| }, | |
| "F7", | |
| "F8", | |
| "F9", | |
| "F10", | |
| "F11", |
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
| [ | |
| { | |
| "name": "sp84.left" | |
| }, | |
| [ | |
| { | |
| "x": 2.25, | |
| "a": 6 | |
| }, | |
| "Esc", |
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 IPython.core.display import display, HTML | |
| from random import randint | |
| def sequence_diagram(diagram): | |
| d = randint(0,1000) | |
| display(HTML(f''' | |
| <script src="https://bramp.github.io/js-sequence-diagrams/js/webfont.js"></script> | |
| <script src="https://bramp.github.io/js-sequence-diagrams/js/snap.svg-min.js"></script> | |
| <script src="https://bramp.github.io/js-sequence-diagrams/js/underscore-min.js"></script> | |
| <script src="https://bramp.github.io/js-sequence-diagrams/js/sequence-diagram-min.js"></script> | |
| <div id="diagram{d}"></div> |
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
| # on | |
| curl -X PUT | |
| --data '{"characteristics":[{"aid": 6, "iid":10, "value": 1}]}' \ | |
| --header "authorization:031-45-154" \ | |
| --header "Content-Type:Application/json" \ | |
| http://localhost:53102/characteristics | |
| # off | |
| curl -X PUT | |
| --data '{"characteristics":[{"aid": 6, "iid": 10, "value": 0}]}' \ |
NewerOlder