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
| (async () => { | |
| try { | |
| if (typeof TurndownService === 'undefined') { | |
| await new Promise((resolve, reject) => { | |
| const script = document.createElement('script'); | |
| script.src = 'https://unpkg.com/turndown/dist/turndown.js'; | |
| script.onload = resolve; | |
| script.onerror = reject; | |
| document.head.appendChild(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
| from loguru import logger | |
| LOGFIRE_TOKEN = "###REDACTED###" # <--- replace token | |
| def configure_logging(): | |
| import logfire | |
| logfire.configure( | |
| send_to_logfire=True, |
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
Show hidden characters
| { | |
| "name": "Dev Container", | |
| "dockerComposeFile": ["../docker-compose.yml", "docker-compose.dev.yml"], | |
| "service": "devcontainer", | |
| "workspaceFolder": "/workspace", | |
| "shutdownAction": "stopCompose", | |
| "remoteUser": "root", |
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 logging | |
| LOGFIRE_TOKEN = "foo" # <--- replace token | |
| def configure_logging(): | |
| import logfire | |
| from logfire.integrations.logging import LogfireLoggingHandler | |
| logfire.configure( |
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 inspect | |
| import logging | |
| import sys | |
| from loguru import logger | |
| LOGFIRE_TOKEN = "FOOOOO" # <--- replae token | |
| # Loguru intercept handler from: https://github.com/Delgan/loguru?tab=readme-ov-file#entirely-compatible-with-standard-logging |
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 Epicwhale\Service\ShortUrl; | |
| /** | |
| * Bitly API implementation | |
| * | |
| * @author Dayson Pais <[email protected]> | |
| * @link http://epicwhale.org | |
| * @package Epicwhale\Service\ShortUrl | |
| * @subpackage BitLy |