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 | |
import re | |
import subprocess | |
import sys | |
from pathlib import Path | |
def clone_repo(repo_url, target_path="."): | |
# Define patterns for GitHub, GitLab, and Codeberg URLs | |
# Support both HTTPS and SSH-style URLs | |
patterns = [ |
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 m from "mithril"; | |
// Auto-import all `.ts` and `.js` files inside `pages/` | |
const modules = import.meta.glob("./pages/**/*.{ts,js}"); | |
import { Layout } from "./layouts/default"; | |
const routes: Record<string, any> = {}; | |
// Define a simple 404 component |
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
> npx puppeteer browsers install chrome # wrong | |
# example version | |
> npx puppeteer browsers install [email protected] # correct |
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 gg | |
import gx | |
import math | |
import rand | |
import sokol.audio | |
import os.asset | |
import sokol.sgl | |
const designed_width = 600 | |
const designed_height = 800 |
OlderNewer