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
local obs = obslua | |
local ffi = require("ffi") | |
local winmm = ffi.load("Winmm") | |
-- Put a sound of your choosing next to "Beep on replay save.lua" and don't forget to match its name either in code below or rename your file. | |
PROP_AUDIO_FILEPATH = script_path() .. "sound_npc_scanner_scanner_photo1.wav" | |
ffi.cdef[[ | |
bool PlaySound(const char *pszSound, void *hmod, uint32_t fdwSound); | |
]] |
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
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: deep-blue; icon-glyph: magic; | |
// Tatort Erstausstrahlung 1.3 | Matthias Konig | 11.06.2021 | |
/*---------------------------------------------------------------------------------------------------------------------- | |
Main | |
----------------------------------------------------------------------------------------------------------------------*/ | |
var url = "https://www.daserste.de/unterhaltung/krimi/tatort/tatort-filter-naechste-erstausstrahlung-102.html" | |
var widget = await buildWidget() |
This document proposes an extension of the C++ standard library.
This is an informal draft for a proposal: its aim is to get feedback from other C++ users and implementers.
Basically, this proposal provides a starting point to use C++ as a basis for C++ build systems.
For this, it provides the minimal C++ header <native_build>
which is implemented by the compiler maintainers.
It defines new types (which are basically strong-typed alias of std::filesystem::path
),
a new templated function build(...)
for building the project, and run(...)
for running an executable.
It has also a permissive requirement: programs using `` are only required to work on the machine
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
Date.prototype.addMins = function(mins) { | |
var dat = new Date(this.valueOf()); // make a new date coz we can't change the original | |
dat.setMinutes(dat.getMinutes() + mins*1); // force mins to be integer instead of string | |
return dat; | |
}; | |
Date.prototype.addDays = function(days) { | |
var dat = new Date(this.valueOf()); // make a new date coz we can't change the original | |
dat.setDate(dat.getDate() + days*1); // force days to be integer instead of string | |
return dat; |
To remove a submodule you need to:
- Delete the relevant section from the .gitmodules file.
- Stage the .gitmodules changes git add .gitmodules
- Delete the relevant section from .git/config.
- Run git rm --cached path_to_submodule (no trailing slash).
- Run rm -rf .git/modules/path_to_submodule (no trailing slash).
- Commit git commit -m "Removed submodule "
- Delete the now untracked submodule files rm -rf path_to_submodule
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
/** | |
* K.jpg's OpenSimplex 2, smooth variant ("SuperSimplex") | |
* | |
* More language ports, as well as legacy 2014 OpenSimplex, can be found here: | |
* https://github.com/KdotJPG/OpenSimplex2 | |
*/ | |
public class OpenSimplex2S { | |
private static final long PRIME_X = 0x5205402B9270C86FL; |