commit c357e7dd40ec2e3c12214926f80df9b6ac5a60af Author: Pk11 Date: Fri May 27 07:12:33 2022 -0500 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f37eab4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +count.txt diff --git a/README.md b/README.md new file mode 100644 index 0000000..5dd07ae --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# ピケ.コム + +ピケ.コムのホームページや様々なランダム小さなページ + +the ピケ.コム home page and various other random little pages diff --git a/agent.php b/agent.php new file mode 100644 index 0000000..1ec1b8b --- /dev/null +++ b/agent.php @@ -0,0 +1,5 @@ +> 0x5) & 0x1F) * 255 / 31); + rgb[2] = Math.round(((val >> 0xA) & 0x1F) * 255 / 31); + } else { + return alert("Error: Invalid color!"); + } + } + + // Ensure the colors are valid + for(var i = 0; i < rgb.length; i++) { + if(rgb[i] < 0x00 || rgb[i] > 0xFF) + return alert("Error: Invalid color!"); + } + + // Write to all inputs + var hex = "#"; + for(var i = 0; i < rgb.length; i++) + hex += rgb[i].toString(16).padStart(2, "0").toUpperCase(); + document.getElementById("html-text").value = hex; + document.getElementById("html-color").value = hex; + + var bgr15 = ((Math.round(rgb[2] * 31 / 255) & 0x1F) << 10 | (Math.round(rgb[1] * 31 / 255) & 0x1F) << 5 | (Math.round(rgb[0] * 31 / 255) & 0x1F)); + document.getElementById("bgr15-no-bit15").value = "0x" + bgr15.toString(16).padStart(4, "0").toUpperCase(); + document.getElementById("bgr15-bit15").value = "0x" + (bgr15 | 1 << 15).toString(16).padStart(4, "0").toUpperCase(); + + document.getElementById("rgb-r").value = rgb[0]; + document.getElementById("rgb-g").value = rgb[1]; + document.getElementById("rgb-b").value = rgb[2]; + + document.getElementById("preview").style.backgroundColor = hex; +} + +updateColor("#000000"); \ No newline at end of file diff --git a/bios-shrinker.html b/bios-shrinker.html new file mode 100644 index 0000000..a238bfa --- /dev/null +++ b/bios-shrinker.html @@ -0,0 +1,83 @@ + + + + + + + + + BIOS Shrinker + + + + + + + + + diff --git a/color.html b/color.html new file mode 100644 index 0000000..b90fa71 --- /dev/null +++ b/color.html @@ -0,0 +1,82 @@ + + + + + + 色変換 + + + +

色変換

+ +

+ [戻る] +

+ +

HTML式16進

+ + + +
+ +

RGB

+
+ + + +
+ +
+ +

BGR15

+ + + +
+ +

プレビュー

+
+ + + + diff --git a/echo.php b/echo.php new file mode 100644 index 0000000..9207362 --- /dev/null +++ b/echo.php @@ -0,0 +1,25 @@ + + + + + + Echo - ピケ.コム + + + + +
+ + + + diff --git a/en/color.html b/en/color.html new file mode 100644 index 0000000..d584c22 --- /dev/null +++ b/en/color.html @@ -0,0 +1,82 @@ + + + + + + Color Converter + + + +

Color Converter

+ +

+ [back] +

+ +

HTML-Style Hex

+ + + +
+ +

RGB

+
+ + + +
+ +
+ +

BGR15

+ + + +
+ +

Preview

+
+ + + + diff --git a/en/index.html b/en/index.html new file mode 100644 index 0000000..43ea7e0 --- /dev/null +++ b/en/index.html @@ -0,0 +1,63 @@ + + + + + + ピケ.コム + + + +
+

Welcome to ピケ.コム (pk . com) !

+

This is Pk11's personal website where I put random little things. For my main projects see pk11.us.

+

日本語ページ・Japanese page

+
+
+ +
+

Pages

+
+
bad-apple
+
Bad Apple!! but it's pure HTML (no JS or CSS)
+ +
bbs
+
A really crappy single thread BBS I made in PHP because I was bored and couldn't upload an image from Windows 98
+ +
bios-shrinker
+
Shrinks a BIOS dump from a 3DS to the correct size
+ +
color
+
Convert between hex, RGB, and BGR15 colors
+ +
dQw4w9WgXcQ
+
;)
+ +
grit
+
Converts images to GRF files using grit
+ +
haste
+
Self-hosted Hastebin with light theme
+ +
nextrip (Japanese)
+
Bus stop info viewer using Metro Transit's NexTrip API
+ +
rss
+
Self hosted Miniflux
+ +
uwu
+
Random uwu face
+ +
video
+
Makes videos show in embeds
+ +
うち (uchi) (Japanese)
+
Home
+
+
+ + + + diff --git a/home.old.php b/home.old.php new file mode 100644 index 0000000..84242ea --- /dev/null +++ b/home.old.php @@ -0,0 +1,38 @@ + + + + + + + + home.pk11.us + + + +
+       へ
+      / \        よ
+     / 日 \       う
+    /     \  __  こ
+  _ |  へ  | /##\ そ
+ /#\|日 冂 日| \##/ ︒
+ \#/|  凵  |  ||
+ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄\ || 
+             ̄ ̄ ̄ ̄ ̄ ̄
+このページは回読み込みました。
+
+ + diff --git a/home.php b/home.php new file mode 100644 index 0000000..7dacfb3 --- /dev/null +++ b/home.php @@ -0,0 +1,37 @@ + + + + + + + + うち.ピケ.コム + + + +
+       ____  ようこそ、 #
+      /【||】\______##   ##
+ _____|【||】|  【口口】### ##
+/ ___ \  ̄ ̄ |冂     ######
+||   ||ーーーー|凵     |####
+|| ・ ||#口口#/ー\【口口】| ##
+ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄\||
+   うち・ピケ・コムへ         ̄ ̄ ̄
+
+このページは回読み込みました。 + + + diff --git a/index.html b/index.html new file mode 100644 index 0000000..0d4e49c --- /dev/null +++ b/index.html @@ -0,0 +1,63 @@ + + + + + + ピケ.コム + + + +
+

ようこそ、ピケ.コムへ!

+

これは、Pk11の個人的なWebサイトです。ここではランダムな小さなものがある、主なものはpk11.usにあります。

+

英語ページ・English page

+
+
+ +
+

ページ

+
+
bad-apple
+
Bad Apple!!でも、HTMLだけです(JSやCSSなし)
+ +
bbs(英語)
+
Windows98から画像をアップロードできないでしたので、PHPで作って本当にしょぼい1スレBBS
+ +
bios-shrinker(英語)
+
3DSからダンプされたBIOSファイルを正しいサイズに縮小
+ +
color
+
16進、RGB、BGR15の間で色を変換
+ +
dQw4w9WgXcQ
+
;)
+ +
grit(英語)
+
イメージをgritを使用してGRFファイルに変換
+ +
haste(英語)
+
自己ホストのライト配色ありHastebin
+ +
nextrip
+
Metro TransitのNexTrip APIを使うバス停留所情報ビューアー
+ +
rss
+
自己ホトスのMiniflux
+ +
uwu
+
ランダムなuwu顔
+ +
video(英語)
+
埋め込みにビデオを表示
+ +
うち
+
+
+
+ + + + diff --git a/song.php b/song.php new file mode 100644 index 0000000..27c9597 --- /dev/null +++ b/song.php @@ -0,0 +1,48 @@ + + + + + + + Discord song embedder + + + + + + + + + + + + + + + + + + + + + + + + + +

Put ?song=[link to song] at the end of the URL and Discord will show an embed of that song.

+ + + diff --git a/uwu.php b/uwu.php new file mode 100644 index 0000000..5795f96 --- /dev/null +++ b/uwu.php @@ -0,0 +1,46 @@ +', '<', '^', '-', 'X', 'T', 'q']; + $mouths = ['w', 'u', 'o', '_', '-', 'x', '///', 'ω']; + $extras = [['', ''], ['', ''], ['', ''], ['', '-☆'], ['=', '='], ['d', 'b♪'], ['ξ(', ')ξ']]; + + $eye = $eyes[rand(0, count($eyes) - 1)]; + $mouth = ''; + do { + $mouth = $mouths[rand(0, count($mouths) - 1)]; + } while(strcasecmp($mouth, $eye) == 0); + $extra = $extras[rand(0, count($extras) - 1)]; + + return $extra[0] . $eye . $mouth . $eye . $extra[1]; + } + + // This is my fallback error page + if($_SERVER['HTTP_HOST'] != 'uwu.xn--rck9c.xn--tckwe') + http_response_code(404); + + // Return source code + if(isset($_GET['source'])) { + header("Content-Type: text/plain"); + die(file_get_contents(basename($_SERVER['PHP_SELF']))); + } + + // Plaintext + if(isset($_GET['raw'])) { + header("Content-Type: text/plain"); + die(face()); + } + + $face = face(); +?> + + + + + + <?php echo htmlspecialchars($face); ?> + + + +

+ + diff --git a/video.php b/video.php new file mode 100644 index 0000000..3baec96 --- /dev/null +++ b/video.php @@ -0,0 +1,52 @@ + + + + + + + Discord video embedder + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Put ?video=[link to video] at the end of the URL and Discord will show an embed of that video.

+ + + diff --git a/wordle.php b/wordle.php new file mode 100644 index 0000000..b833bd6 --- /dev/null +++ b/wordle.php @@ -0,0 +1,8 @@ +