scriptName MyScript
{This is the text that we are looking for, right here.
Oh, and it can have newlines.}
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
| (\[[^\]]*\])\s*(\[[^\]]*\])\s*(\[[^\]]*\])\s*(\[[^\]]*\])\s*(.*) |
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
| # Note: this parser | |
| # Here is the helper macro to use in your project: | |
| macro(parse_arguments) | |
| cmake_parse_arguments(__argument_parser "" "PREFIX" "FLAG;VALUE;MULTI;ARGS" ${ARGN}) | |
| if(NOT DEFINED __argument_parser_PREFIX) | |
| set(__argument_parser_PREFIX "${CMAKE_CURRENT_FUNCTION}") | |
| endif() | |
| cmake_parse_arguments("${__argument_parser_PREFIX}" "${__argument_parser_FLAG}" "${__argument_parser_VALUE}" "${__argument_parser_MULTI}" ${__argument_parser_ARGS}) |
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
| require "date" | |
| require "fileutils" | |
| require "json" | |
| # Make a commit. | |
| # We need the portfiles to refer to an actual commit. | |
| # It will only commit if anything changed, tho. | |
| system "git add ." | |
| system %{git commit -m "Auto commit (content changed) #{DateTime.now.strftime "%d/%m/%Y %H:%M:%S"}"} |
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
| auto ReadFile(std::filesystem::path path) { | |
| auto ifs = std::ifstream(path); | |
| return std::string(std::istreambuf_iterator<char>{ifs}, {}); | |
| } |
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
| # Callable from cmd | |
| powershell Get-Content -Raw Replace.txt | % { $_ -replace "foo", "XXX" } | Set-Variable x; Set-Content Replace.txt $x |
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
| { | |
| "workbench.colorCustomizations": { | |
| "[Just Black]": { | |
| "editorRuler.foreground": "#ff00d0", | |
| "activityBar.inactiveForeground": "#ff00d0", | |
| "menubar.selectionForeground": "#00ffff", | |
| "activityBar.foreground": "#00ffff", | |
| "titleBar.activeForeground": "#00ffff", | |
| "sideBarSectionHeader.foreground": "#ff00d0", | |
| "sideBarTitle.foreground": "#ff00d0", |
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 "logger.h" | |
| class OurEventSink : public RE::BSTEventSink<RE::TESHitEvent>, | |
| public RE::BSTEventSink<RE::TESActivateEvent>, | |
| public RE::BSTEventSink<SKSE::CrosshairRefEvent>, | |
| public RE::BSTEventSink<RE::MenuOpenCloseEvent>, | |
| public RE::BSTEventSink<RE::InputEvent*> { | |
| OurEventSink() = default; | |
| OurEventSink(const OurEventSink&) = delete; | |
| OurEventSink(OurEventSink&&) = delete; |