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
// waits until a condition is met by polling every 2 ms | |
// i did not want to actually write truly async code, i just wanted something that | |
// works in a reasonable amount of time | |
const wait_until = (cond) => new Promise((res, rej) => { | |
const interval = setInterval(() => { | |
if (cond()) { | |
clearInterval(interval); | |
res(); | |
} | |
}, 2); |
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
<script> | |
let messages = [ | |
{ text: 'bru' }, | |
{ text: 'moment' }, | |
{ text: 'testing' }, | |
{ text: '123' }, | |
]; | |
let hideChoice = ''; |
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
/** | |
* WaifuProgrammingBooks | |
* | |
* This uses github's api to get images of anime girls holding programming books. | |
* | |
* Usage: | |
* | |
* Add <script src="https://gist.githubusercontent.com/r2dev2bb8/2e655ef24a6af288d01a8d6d823d5617/raw/1bb4db5484247c3d19ae5432168ca31f0e241c78/waifubook.js" /> to your document head | |
* | |
* waifuProgrammingBooks.getLanguages() returns a language object with key: language url |
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
#!/bin/bash | |
hjelp=" | |
Zoom link helper program\n | |
\n | |
Usage:\n | |
\t./zoomselector.bash class\n | |
\n | |
Subcommands:\n | |
\tinit:\n |