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
DCPU-16 Specification | |
Copyright 1985 Mojang | |
Version 1.7 | |
=== SUMMARY ==================================================================== | |
* 16 bit words | |
* 0x10000 words of ram |
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
function findMidiDevices(name) { | |
return navigator | |
.requestMIDIAccess() | |
.then((midiAccess) => { | |
let input, output; | |
midiAccess.inputs.forEach((currentInput) => { | |
if(currentInput.name === name) input = currentInput; | |
}); | |
midiAccess.outputs.forEach((currentOutput) => { | |
if(currentOutput.name === name) output = currentOutput; |
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
/*CC0*/using System.Linq;using S=ServerManager;[HarmonyLib.HarmonyPatch(typeof(S),"LoadServers")]class C{static System.Collections.Generic.List<IRegionInfo>R=S.DefaultRegions.ToList();static void Prefix()=>S.DefaultRegions=R.ToArray();public static void A(string N,string I,ushort P)=>R.Add(new DnsRegionInfo(I, N, (StringNames)1003, I, P).Duplicate());} |
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
{ | |
unique_lock lock(mutex); // takes the lock | |
convar.wait(mutex) // wait | |
// do stuff with the lock | |
} | |
// the lock is no longer held |