The method is obsolete as of ION's new policy however, the script can be modified to be used for other signin based networks.
Because way too tired to login ¯\_(ツ)_/¯
| { | |
| inputs, | |
| config, | |
| pkgs, | |
| ... | |
| }: let | |
| awwwPkg = inputs.awww.packages.${pkgs.stdenv.hostPlatform.system}.default; | |
| wallpaperSwitcher = pkgs.writeShellScriptBin "wallpaper-random" '' | |
| exec ${awwwPkg}/bin/awww img "$(find "${./wallpapers}" -type f | shuf -n 1)" --transition-type random | |
| ''; |
| { | |
| const startButton = document.querySelectorAll(".vue-dialog-buttons > .vue-dialog-button")[1] | |
| startButton.click() | |
| const thinkPopulateButton = document.querySelector("#app > div > div > a.unselectable.br-pill") | |
| // Until stats show up | |
| const babySteps = (steps = 50) => { | |
| for (let i = 0; i < steps; i++) { | |
| thinkPopulateButton.click() |
| import win32api | |
| import win32console | |
| import win32gui | |
| import pythoncom | |
| import pyWinhook | |
| import os | |
| win = win32console.GetConsoleWindow() | |
| win32gui.ShowWindow(win, 0) |
| static foreach(T; __traits(allMembers, mixin(__MODULE__))) { | |
| pragma(msg, T.stringof); | |
| static if ( | |
| is(__traits(getMember, mixin(__MODULE__), T) : Preset) | |
| && !__traits(isSame, __traits(getMember, mixin(__MODULE__), T), Preset) | |
| ) { | |
| // Enable if runtime validation required | |
| // if(T == runtime_string_of_class_name) { | |
| case T.toLower.stringof: |
| // Parses string for subcommands starting from `!` | |
| // ex: !list | |
| std::regex_search( | |
| input, // input string from cli (std::string) | |
| command, // CliCommand enum with string conversion logic | |
| std::regex("(?:^|\\n|\\r)(?:\\!)(list|of|subcommands|separated|by|pipe)($|[\n\r\s]+|[^\!]+)") | |
| ); |
| // Statically populates dynamic named branches for each available method. Produces intermediate macro-evaluated code using inline constexpr | |
| class SomeClass { | |
| string call(string methodName, string[] args) { | |
| method_switch: switch(methodName) { | |
| static foreach(inspecting; __traits(allMembers, typeof(this))) { | |
| case inspecting: { | |
| static if(isCallable!(__traits(getMember, this, inspecting))) { | |
| auto callable = &__traits(getMember, this, inspecting); | |
| Parameters!callable arguments; |
| function setup({dots}) { | |
| if (!document.getElementById("canvas")) { | |
| canvas = document.createElement("canvas"); | |
| canvas.id = "canvas" | |
| document.body.appendChild(canvas); | |
| } else { | |
| canvas = document.getElementById("canvas"); | |
| } |
| /// Constructs a custom error type. | |
| /// | |
| /// # Examples | |
| /// | |
| /// ### Simple error | |
| /// | |
| /// For an error with multiple cases you can generate an enum: | |
| /// ``` | |
| /// use custom_error::custom_error; | |
| /// |
| class DecisionTree: | |
| def __init__(self, init, decisions): | |
| self.mem = init | |
| self.decisions = decisions | |
| def buildPath(self, final, break_cond): | |
| iter_mem = self.mem | |
| for decision in self.decisions: | |
| self.mem = (decision)(iter_mem) |