This file has been truncated, but you can view the full file.
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
the | |
| |
| |
. | |
, | |
of | |
and | |
to |
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
<?php | |
declare(strict_types=1); | |
$input = fopen("php://input"); | |
class HTTPSocketServer { | |
public ?callable $onData = null; | |
private bool $serverStarted = false; | |
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
#!/bin/bash | |
if [[ "$(curl https://gist.github.com/Codezigineer/501c09f8a3114ce7bb32c7d27301650b/raw/webcomp.sh)" != "$(cat $0)" ]]; then | |
cd "$(dirname $0)" | |
curl https://gist.github.com/Codezigineer/501c09f8a3114ce7bb32c7d27301650b/raw/webcomp.sh -o webcomp | |
fi | |
usage() { | |
echo "Usage: webcomp [ -f infile ] [ -o outfile ] [ -O0 ] [ -O1 ] [ -O2 ] [ -O3 ] [ -t target {default is wasm32} ] [ -O ]" | |
} |
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
apk update | |
apk add curl git bash zip clang gcc nodejs python3 | |
curl https://codeload.github.com/emscripten-core/emsdk/zip/refs/heads/main -o main.zip | |
unzip main.zip -d emsdk | |
cd emsdk | |
cd emsdk-main | |
chmod +x emsdk | |
./emsdk install latest | |
./emsdk activate latest |
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
#include <stdlib.h> | |
unsigned char clz32(unsigned int x) | |
{ | |
return __builtin_clz(x); | |
}; | |
unsigned char *randomData(unsigned length) | |
{ | |
unsigned char *array = (unsigned char *)malloc(length); |
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
<canvas id="c"></canvas> | |
<div id="info"> | |
<div id="top"> | |
<a id="close" href="">×</a> | |
</div> | |
<p> | |
<br>- Tear the cloth with your mouse | |
<br> | |
<br>- Right click and drag to cut |