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 math | |
| from imagekit.lib import * | |
| class RotoZoom(processors.ImageProcessor): | |
| """ | |
| Rotates image with the ability to scale change and apply offsets | |
| angle - degrees counter-clockwise. | |
| scale - defaults to no zoom (1) >1 zooms-in <1 zooms-out | |
| left - left offset in pixels >0 moves right <0 moves left | |
| top - top offset in pixels >0 moves up <0 moves down |
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
| using System; | |
| using System.IO; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using HeyRed.MarkdownSharp; | |
| namespace Artifact | |
| { |
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 campfire botbinder | |
| // @namespace Violentmonkey Scripts | |
| // @match https://chat.cryptide.com/rooms/* | |
| // @grant none | |
| // @version 1.0 | |
| // @author - | |
| // @description 2/12/2024, 9:00:52 AM | |
| // ==/UserScript== |
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
| version: '3.8' | |
| services: | |
| traefik: | |
| image: traefik:v3.0 | |
| container_name: ${STACK_NAME:-chad}-traefik | |
| restart: unless-stopped | |
| command: | |
| - --providers.docker=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
| import json | |
| import time | |
| import asyncio | |
| import random | |
| from fasthtml.common import * | |
| import plotly.express as px | |
| import pandas as pd | |
| hdrs = ( | |
| Script(src='static/js/htmx.min.js'), |
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 time | |
| from typing import Callable | |
| from pydantic import BaseModel, Field, ConfigDict | |
| class ShapePure(object): | |
| shape: str | |
| perimeter: float | |
| area: float | |
| def __init__(self, shape: str, perimeter: float, area: float): |