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
| <?php | |
| namespace M6\Bundle\DistributionBundle\EventDispatcher; | |
| use Symfony\Component\EventDispatcher\Event; | |
| /** | |
| * Evènement surchargeant le kernel.terminate | |
| */ | |
| class KernelTerminateEvent extends Event | |
| { |
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
| # usage echo 'soirée entre copines'| python test_strict_json.py' | |
| # install strictjson | |
| import os, sys | |
| os.environ['OPENAI_API_KEY'] = 'fill' | |
| from strictjson import * | |
| input = sys.stdin.read().strip() |
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
| #!/Users/omsr/Documents/InternalWorkspace/raycast-ask-bedrock/venv/bin/python | |
| # Required parameters: | |
| # @raycast.schemaVersion 1 | |
| # @raycast.title ask claude 3.7 | |
| # @raycast.mode fullOutput | |
| # Optional parameters: | |
| # @raycast.icon 🤖 | |
| # @raycast.argument1 { "type": "text", "placeholder": "what do you want ?" } |
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, re | |
| from openai import OpenAI | |
| client = OpenAI( | |
| base_url="https://bedrock-runtime.us-west-2.amazonaws.com/openai/v1", | |
| api_key=os.getenv("AWS_BEARER_TOKEN_BEDROCK") | |
| ) | |
| completion = client.chat.completions.create( | |
| model="openai.gpt-oss-20b-1:0", |
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
| "Analyze this video comprehensively and provide a detailed markdown report with the following sections: | |
| # Quick Summary | |
| Provide a one-line summary of the video content. | |
| # Object Detections | |
| List all objects you can detect with precise timestamps when they appear and disappear. Include logos, text, equipment, and any visual elements. Exclude peoples and animals. Format: Object Name (appears at MM:SS, disappears at MM:SS). | |
| # Scene Detection | |
| Break down the video into distinct scenes with timestamps and descriptions. Format: MM:SS-MM:SS: Scene description. |
OlderNewer