Version: 1.0.0 Protocol Version: 2024-11-05 Last Updated: 2026-01-10
Boost your Metal app’s performance by upscaling lower-resolution content to save GPU time.
The
MetalFXframework integrates with Metal to upscale a relatively low-resolution image to a higher output resolution in less time than it takes to render directly to the output resolution. >
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 AppKit | |
| @main | |
| struct DateFormatters { | |
| static func main() { | |
| let iterations = 100_000 | |
| let startInterval: TimeInterval = 780_000_000 | |
| time("Create Date Baseline") { | |
| var results: [Date] = [] |
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
| """ | |
| Simple demo showing how to generate and compare text and image embeddings. | |
| Uses CLIP (openai/clip-vit-base-patch16) model for both text and image embeddings. | |
| """ | |
| import torch | |
| from PIL import Image | |
| from transformers import CLIPProcessor, CLIPModel | |
| import numpy as np | |
| import torch.nn.functional as F |
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
| 'system': | |
| [ | |
| { | |
| 'type': 'text', | |
| 'text': "You are Claude Code, Anthropic's official CLI for Claude.", | |
| 'cache_control': {'type': 'ephemeral'} | |
| }, | |
| { | |
| 'type': 'text', | |
| 'text': 'You are an interactive CLI tool that helps users with software engineering tasks. |
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 bun | |
| "use strict"; | |
| const fs = require("fs"); | |
| const { execSync } = require("child_process"); | |
| const path = require("path"); | |
| // ANSI color constants | |
| const c = { | |
| cy: '\033[36m', // cyan |
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
| model: claude-opus-4-20250514 | |
| messages: | |
| - role: user | |
| content: | |
| - type: text | |
| text: | | |
| <system-reminder> | |
| As you answer the user's questions, you can use the following context: | |
| # important-instruction-reminders | |
| Do what has been asked; nothing more, nothing less. |
- Creator: Evan Mullen
- Description: Extract structured data about bank deposit bonuses from the Doctor of Credit website.
NewerOlder