This file contains 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
# Public domain, as per The Unlicense. NO WARRANTY. See https://unlicense.org | |
class_name NumberLimits | |
## Useful for dealing with numerical limits. | |
## Minimum positive 64-bit floating-point number > 0. | |
## [br]0x0000000000000001 | |
const FLOAT64_MIN_SUBNORMAL: float = 2.0**-1074 # ≈ 4.9406564584124654e-324 | |
## Maximum positive 64-bit floating-point subnormal number (min possible value in binary exponent). | |
## [br]0x000FFFFFFFFFFFFF |
This file contains 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
# Public domain, as per The Unlicense. NO WARRANTY. See https://unlicense.org | |
extends Node | |
## Solves a [url=https://github.com/godotengine/godot/issues/59250]bug[/url] where touchpad devices | |
## can be detected as a joypad. | |
## | |
## This script should be autoloaded in the project settings. | |
## This is merely a workaround, not intended for use in production code. | |
func _enter_tree() -> void: |
This file contains 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
[Desktop Entry] | |
Name=Convert Image | |
GenericName=Image Converter | |
Comment=Convert images to a specified file format, like ico, png, etc. | |
Exec=bash -c 'x=$(zenity --title="Convert Images" --width=320 --entry --text="New file extension:" --entry-text=png) && mogrify -background transparent -strip -define icon:auto-resize=16,24,32,48,64,72,96,128,256 -format "$x" "$@"' "$0" %F | |
Icon=convert | |
Type=Application | |
Categories=Graphics; | |
StartupNotify=false | |
Terminal=false |
This file contains 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 | |
#License: "Zero-Clause BSD" <https://opensource.org/licenses/0BSD> | |
# Requires perl and unidecode module (in Ubuntu, it can be installed with sudo apt install libtext-unidecode-perl). | |
# Example usage: asciify-dic $DIC_NAME.dic > $DIC_NAME-asciified.dic | |
if [[ "$1" == "--help" ]]; then | |
echo "Usage: $(basename "$0") INPUT_FILE > OUTPUT_FILE" | |
echo "Asciify a .dic file (list of dictionary words)." | |
echo "" | |
echo "Generates a file with ASCII-only versions of the words that have non-ASCII chars." |
This file has been truncated, but you can view the full file.
This file contains 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
% List of asciified Portuguese words | |
% [Lista de palavras asciificadas em português] | |
% | |
% Generated from the complete list of words at: | |
% https://www.winedt.org/dict/portuguese.html | |
% https://www.winedt.org/dict/portuguese.zip | |
% | |
% License: GNU LGPL v2.1 | |
% Credits to: Bernhard Enders, Raimundo Santos Moura, Ricardo Ueda Karpischek |
This file contains 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
V val; // struct | |
T obj; // class | |
V? nlv; // Nullable | |
X unk; // not known if class or struct | |
public override int GetHashCode() { | |
int h = 23; | |
unchecked { | |
h = (h << 5) - h + val.GetHashCode(); | |
h = (h << 5) - h + (obj != null ? obj.GetHashCode() : 0); | |
h = (h << 5) - h + (nlv != null ? nlv.GetHashCode() : int.MinValue); |
This file contains 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
Windows Registry Editor Version 5.00 | |
; Created with Default Programs Editor | |
; http://defaultprogramseditor.com/ | |
; Add Verb | |
[HKEY_CURRENT_USER\Software\Classes\inkscape.svg\shell\ConvertToMinifiedPNG] | |
@="Convert to minified PNG" | |
[HKEY_CURRENT_USER\Software\Classes\inkscape.svg\shell\ConvertToMinifiedPNG\command] | |
@="\"C:\\Program Files\\ImageMagick\\7.0.3-Q16\\convert.exe\" -background none -strip -set filename:n \"%%t\" \"%1\" \"%%[filename:n].png\"" |