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
const changeHtmlLanguage = { | |
type: '3rdParty', | |
init: i18n => { | |
i18n.on('languageChanged', l => document.documentElement.lang = l); | |
}, | |
}; | |
// example usage | |
i18n | |
.use(LanguageDetector) |
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 | |
if [[ ${PWD##*/} != "Private" ]]; then | |
echo "You don't seem to be in a private resources folder" | |
exit 1 | |
fi | |
neospackage=$(basename $(pwd | grep -oP '([A-Z].*\.[A-Z].*)(?=/Resources)')) | |
read -p "name the package [$(echo $neospackage|cut -d'.' -f2)]: " packagename | |
if [[ -z "$packagename" ]]; then | |
packagename=$(echo $neospackage|cut -d'.' -f2) | |
fi |
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
#RequireContext CMapEditorPlugin | |
#Include "MathLib" as MathLib | |
/** | |
* yield after placing S_RenderingSteps blocks to avoid consuming to many resources | |
*/ | |
#Setting S_RenderingSteps 5000 as "Rendering Steps" | |
/** | |
* A block is on a plane if it is S_PlaneDistanceLeeway away from said plane | |
*/ |