Download Jar. Libraryless. Click here for Pure Java version (4490L/30K).
!7 html { if (eq(uri, "/update")) { try object checkWebAuthed(params); thread { update(); } ret "Updating"; } if (eq(uri, "/serve")) ret subBot_serveHTMLFile(theFile()); ret "File: " + formatLocalDateWithMinutes(lastModified(theFile())) + " (" + fileSize(theFile()) + ")"; } p { if (!fileExists(theFile())) thread { update(); } atTheStartOfEveryHour(r update); } svoid update { saveTextFileIfNotNull(theFile(), loadPage(tb_mainServer() + "/tb/snippets.php?reverse=1&longlist=1&withmd5=1")); } static File theFile() { ret programFile("public-snippets.html"); }
download show line numbers debug dex old transpilations
Travelled to 10 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1020022 |
Snippet name: | Cache Full Snippets List Web Bot [as HTML] |
Eternal ID of this version: | #1020022/8 |
Text MD5: | f76256e55cd55acb39a485c5246e2303 |
Transpilation MD5: | 5d9ff43987bb07b882aadc4ca8a30899 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-08 22:38:49 |
Source code size: | 623 bytes / 24 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 415 / 1832 |
Version history: | 7 change(s) |
Referenced in: | [show references] |