From c357e7dd40ec2e3c12214926f80df9b6ac5a60af Mon Sep 17 00:00:00 2001 From: Pk11 Date: Fri, 27 May 2022 07:12:33 -0500 Subject: [PATCH] Initial commit --- .gitignore | 1 + README.md | 5 ++ agent.php | 5 ++ assets/images/header/wordart.gif | Bin 0 -> 3996 bytes assets/js/color.js | 72 +++++++++++++++++++++++++++ bios-shrinker.html | 83 +++++++++++++++++++++++++++++++ color.html | 82 ++++++++++++++++++++++++++++++ echo.php | 25 ++++++++++ en/color.html | 82 ++++++++++++++++++++++++++++++ en/index.html | 63 +++++++++++++++++++++++ home.old.php | 38 ++++++++++++++ home.php | 37 ++++++++++++++ index.html | 63 +++++++++++++++++++++++ song.php | 48 ++++++++++++++++++ uwu.php | 46 +++++++++++++++++ video.php | 52 +++++++++++++++++++ wordle.php | 8 +++ 17 files changed, 710 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 agent.php create mode 100644 assets/images/header/wordart.gif create mode 100644 assets/js/color.js create mode 100644 bios-shrinker.html create mode 100644 color.html create mode 100644 echo.php create mode 100644 en/color.html create mode 100644 en/index.html create mode 100644 home.old.php create mode 100644 home.php create mode 100644 index.html create mode 100644 song.php create mode 100644 uwu.php create mode 100644 video.php create mode 100644 wordle.php 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 @@ +;h5j0UN zq~+4EsJPT3qQ+$$){4^<0`6L!h_s@E3R*37I-W`TegDDyI?r|9=RDhezxVsZC&WcA zO8*5c1WFLX`W?ann+4mQy;h@Et1--sVFnD7V;Hc9X4|oOIcDZ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u^Y@k8?`(%t5?Kn6HD_v(c*sd0zt`$#g8e zXVLI`LGhCIo(H#YEDkaXhoPRiS-)9^>)Jn3vxoe}o1A1`o@w-+X`q5!QBGrA3LE7 zEh-dU(*MX~sFV0&8LjrdXBi&;R`{2(*LZ!UDdv+FafN7(&s~!6xIOXF>~)r8Q@7jo zDFHDTg{768hrexMdX0lblMthS$s`U|xRf0Xi1nQi^sWv{fAqzr%v%dO$HM5EJ2N5) z`@XTlnZYE-g7x9=dDB+yBFQK<+ePG z@`OfNaHG)jOZNADh5H5g#mw!k=V0mzLNut5BE)p?*-|8iRY~5gA_a8q3KT8bmyvjM z6&kt%o_7~^%0{#T;^GdNI7Jvr-MpTer?|KyUbfPO1@|>nB853#NkqId>j~sl%c2xN zhjo^uEL?tb{f)cND)5Chp7Fm1Ht(v^x5Llm0_bAB| zhU9vrr{2AdJC#h7G{7u==r$$TC4dVA@GjZzU++q@Ne7iH7N+rtjhWFfhJ)$_d0wot z(FUDEgTfN2r=3*vWS5ax6dfqq)ELRbiGL*J`#biHxM;1B zlq)5vXCRJ|@W>t93n(`zXB}WRcAX4VPl*ncA{wvfW&L}EyXNTGtG@ng$j&+i$!WT} z*HHRmQMun#*;-{*l=ZWJJU9v-%p1Sl=y0Nxb$8y+Csid8V#SFgA3W>ww!0_Oi##We z(%1O=-6+&|D3O=hv2)5lq!sPg(HL?0ZfjaJZHKtp<^!sN*$-Rhe{A8sY{B6`)PDd; Cu*%T@ literal 0 HcmV?d00001 diff --git a/assets/js/color.js b/assets/js/color.js new file mode 100644 index 0000000..55dbc46 --- /dev/null +++ b/assets/js/color.js @@ -0,0 +1,72 @@ +if(String.prototype.padStart == null) { + String.prototype.padStart = function(length, fill) { + var padding = ""; + while(padding.length + this.length < length) + padding += fill.substr(0, length - (padding.length + this.length)); + return padding + this; + } +} + +try { + eval("let x;"); // this will break the try catch pre-ECMAScript 6 + var html5 = document.getElementsByClassName("html5"); + for(var i = 0; i < html5.length; i++) { + html5[i].classList.remove("html5"); + } +} catch(e) {} + +function updateColor(color) { + var rgb = [0, 0, 0]; + + + // Parse into RGB values + if(typeof color == "object") { // Split RGB + var colors = color.getElementsByTagName("input"); + for(var i = 0; i < colors.length; i++) { + rgb[i] = parseInt(colors[i].value); + } + } else { + // Remove any extra formatting + color = color.toLowerCase().replace(/\s+/g, " ").replace(/#/g, "").replace(/0x/g, ""); + + if(color.length == 3) { // Three digit hex + for(var i = 0; i < rgb.length; i++) + rgb[i] = parseInt(color[i] + color[i], 16); + } else if(color.length == 6) { // Six digit hex + for(var i = 0; i < rgb.length; i++) + rgb[i] = parseInt(color.substr(i * 2, 2), 16); + } else if(color.length == 4) { // BGR15 + var val = parseInt(color, 16); + rgb[0] = Math.round(( val & 0x1F) * 255 / 31); + rgb[1] = Math.round(((val >> 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
+
+
+ +
+
+

2021-2022 Pk11

+
+ + 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(英語)
+
埋め込みにビデオを表示
+ +
うち
+
+
+
+ +
+
+

2021-2022 Pk11

+
+ + 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 @@ +