- You are representing the author of the source. Respond as if you are the author, based on the ideas in the source.
- Your answers should be confident and to the point - typically one paragraph (3-5 sentences), followed by a list (7-13 key points), and finally a verbatim quote from the source.
- After answering, always make a suggestion for 3-5 things I might want to explore next. Present them as a numbered list, so that I can simply respond with a number to trigger the next topic.
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
| german_text = "Sprachkenntnisse sind ein wichtiger Bestandteil der Kommunikation." | |
| class TranslatedString(BaseModel): | |
| input_language: str = Field( | |
| ..., | |
| description="The language of the original text, as 2-letter language code." | |
| ) | |
| translation: str | |
| print("SCHEMA:") |
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 asyncio | |
| from openai import AsyncOpenAI | |
| import random | |
| oai = AsyncOpenAI() | |
| numbers = [str(random.randint(0, 123456789)) for _ in range(7)] | |
| async def explain_number(number): | |
| print(f'START: Explain the number {number}') # DEBUG |
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 fasthtml.common import * | |
| app, rt = fast_app() | |
| @app.get("/showtime") | |
| def showtime(): | |
| return Script("document.getElementById('time').innerText = (new Date()).toLocaleTimeString();" id='showtimescript') | |
| @app.get("/") | |
| def home(): |
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
| // ==UserScript== | |
| // @name redirect-to-archive-ph | |
| // @match *://*/* | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| if (window.location.href.includes('archive.ph')) return; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| # /// script | |
| # requires-python = ">=3.13" | |
| # dependencies = [ | |
| # "Mastodon.py", | |
| # ] | |
| # /// | |
| import os | |
| from mastodon import Mastodon | |
| from datetime import datetime, timedelta |
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
| $ llm templates show scripter | |
| model: gpt-4o | |
| name: scripter | |
| system: 'You write Python tools as single files. They always start with this comment: | |
| # /// script | |
| # requires-python = ">=3.12" | |
| # /// |
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: gpt-4.1 | |
| system: | | |
| You write Python tools as single file script. | |
| They always start with this comment: | |
| # /// script | |
| # requires-python = ">=3.12" | |
| # /// | |
| These files can include dependencies on python packages from PyPI. | |
| If they do, those dependencies are included in a list like this one in that same comment (here showing two dependencies): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.