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
| local pp_indent_width = 2 | |
| local pp_indent_width = 2 | |
| ---Indent string | |
| ---@param s string | |
| ---@param depth integer | |
| ---@return string | |
| local function indent(s, depth) | |
| return string.rep(" ", pp_indent_width * depth) .. s | |
| end |
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 bash | |
| # _ _ | |
| # | | | | | |
| # ___ ___ _ __ ___ ___ _ __ ___| |__ ___ | |_ __ _ | |
| # / __|/ __| '__/ _ \/ _ \ '_ \/ __| '_ \ / _ \| __/ _` | | |
| # \__ \ (__| | | __/ __/ | | \__ \ | | | (_) | || (_| | | |
| # |___/\___|_| \___|\___|_| |_|___/_| |_|\___/ \__\__,_| | |
| # Out of frustration of `flameshot` not working well with Hyprland, |
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 bash | |
| if [ "${PREVIEW_DEPLOYMENTS_ENABLED}" = "1" ]; then | |
| echo "===== PREVIEW DEPLOYMENTS ENABLED" | |
| export DATABASE_URL="sqlite:////app/var/app.db" | |
| if [ ! -f /app/var/app.db ]; then | |
| set -e |
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
| -- Use like this: | |
| -- local defold = require "defold_messages" | |
| -- msg.post(".", defold.go.acquire_input_focus) | |
| return { | |
| -- Built-in system messages. | |
| exit = hash "exit", | |
| reboot = hash "reboot", | |
| set_update_frequency = hash "set_update_frequency", | |
| start_record = hash "start_record", |
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
| (ns luaxer.core | |
| (:require | |
| [cheshire.core :as json] | |
| [clojure.string :as string])) | |
| (defn- lexer-error [message pos] | |
| (throw (ex-info (str "Lexer Error: " message) {:position pos}))) | |
| (defn- lexer [source] | |
| (let [source (string/trim source) |
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 bash | |
| if [[ "$#" -ne 2 && "$#" -ne 3 ]]; then | |
| echo "Usage: $0 <class> <file> [line]" | |
| echo " <class>: The window class for ghostty/Neovim" | |
| echo " <file>: The file to open" | |
| echo " [line]: Optional. The line number to open the file at" | |
| exit 1 | |
| fi |
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 * as cheerio from "cheerio"; | |
| const url = "https://kdkjudo.org/%E6%8A%80/%E6%9F%94%E9%81%93-%E6%8A%80%E5%90%8D%E7%A7%B0%E4%B8%80%E8%A6%A7/"; | |
| const main = async () => { | |
| const resp = await fetch(url); | |
| const html = await resp.text(); | |
| const $ = cheerio.load(html); |
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
| package camera | |
| import "core:fmt" | |
| import "core:math" | |
| import rl "vendor:raylib" | |
| PixelCamera :: struct { | |
| screen_width: i32, | |
| screen_height: i32, | |
| virtual_screen_width: i32, |
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
| --[[ | |
| Go-like errors for Lua | |
| Copyright (c) 2023 Christopher Kaster | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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 python3 | |
| # Currently this is used for Detective Conan if you want to use this for another show just edit the "fillers" | |
| # variable below | |
| import re | |
| import os | |
| import sys | |
| # copied from https://www.animefillerlist.com/shows/detective-conan |
NewerOlder