Mozilla.Firefox
Google.Chrome
| #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; |
| { | |
| "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", |
| # Callable from cmd | |
| powershell Get-Content -Raw Replace.txt | % { $_ -replace "foo", "XXX" } | Set-Variable x; Set-Content Replace.txt $x |
| auto ReadFile(std::filesystem::path path) { | |
| auto ifs = std::ifstream(path); | |
| return std::string(std::istreambuf_iterator<char>{ifs}, {}); | |
| } |
| 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"}"} |
| # 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}) |
| (\[[^\]]*\])\s*(\[[^\]]*\])\s*(\[[^\]]*\])\s*(\[[^\]]*\])\s*(.*) |