Session ID: ses_31c410f5bffec3gFEM4qx10bXi Created: 3/12/2026, 9:31:07 PM Updated: 3/12/2026, 9:43:18 PM
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
| #!/bin/sh | |
| # ISC License | |
| # Copyright (c) 2026 Alexandre Gomes Gaigalas <alganet@gmail.com> | |
| # Permission to use, copy, modify, and/or distribute this software for any | |
| # purpose with or without fee is hereby granted, provided that the above | |
| # copyright notice and this permission notice appear in all copies. | |
| # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
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
| module PrettyParseError ( | |
| prettyParseError, | |
| PrettyParseErrorOptions(PrettyParseErrorOptions), | |
| prettyParseErrorDefaults | |
| ) where | |
| import Data.List (intercalate, nub) | |
| import Text.Parsec | |
| import Text.Parsec.Error | |
| import Text.Parsec.Pos |
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 sys | |
| import usb.core | |
| import usb.util | |
| import time | |
| def initialize(): | |
| # find our device | |
| dev = usb.core.find(idVendor=0x1a86, idProduct=0x7584) |
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
| /* | |
| MESA=<path to git clone of git://anongit.freedesktop.org/mesa/mesa> | |
| gcc | |
| -I$MESA/include/ | |
| -I$MESA/src/ | |
| -I$MESA/src/mesa | |
| -I$MESA/src/mapi | |
| -I$MESA/src/gallium/include | |
| -lglapi |
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
| while ! ./_/build.sh 2> _/build.log; do | |
| if [[ $(grep "No such file or directory" _/build.log) =~ .*error..(.*)..No.such.* ]]; then | |
| missing=${BASH_REMATCH[1]} | |
| echo "Adding file" $missing | |
| mkdir -p $(dirname _missing/$missing) | |
| touch _missing/$missing | |
| elif [[ $(grep "was not declared in this scope" _/build.log) =~ .*error..โ([A-Z0-9_]*)โ.was.not.* ]]; then | |
| missing=${BASH_REMATCH[1]} | |
| echo "Adding constant" $missing |
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
| # RFC 7159 ยง 9 | |
| # "An implementation may set limits on the size of texts that it accepts." | |
| def parse_json(text): | |
| if len(text) != 1: | |
| raise ValueError("Only accepts single character JSON values") | |
| return int(text[0]) |
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
| """ | |
| Usage: python3 regional.py list of words | |
| Prints a representation of the words as Regional Identifiers, and copies the output directly to keyboard for you | |
| This is because some terminals think that zero width spaces are silly. | |
| Currently supports: A-Z | |
| Requires: Python 3 | |
| Now less complex, thanks @bmispelon! | |
| """ |
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
| #include <exception> | |
| #include <functional> | |
| #ifdef __EMSCRIPTEN__ | |
| #include <emscripten.h> | |
| #include <SDL.h> | |
| #include <SDL_image.h> | |
| #include <SDL_ttf.h> |
NewerOlder