Download Jar. Libraryless. Click here for Pure Java version (4490L/30K).
1 | !7 |
2 | |
3 | html { |
4 | if (eq(uri, "/update")) { |
5 | try object checkWebAuthed(params); |
6 | thread { update(); } |
7 | ret "Updating"; |
8 | } |
9 | |
10 | if (eq(uri, "/serve")) |
11 | ret subBot_serveHTMLFile(theFile()); |
12 | ret "File: " + formatLocalDateWithMinutes(lastModified(theFile())) + " (" + fileSize(theFile()) + ")"; |
13 | } |
14 | |
15 | p { |
16 | if (!fileExists(theFile())) thread { update(); } |
17 | atTheStartOfEveryHour(r update); |
18 | } |
19 | |
20 | svoid update { |
21 | saveTextFileIfNotNull(theFile(), loadPage(tb_mainServer() + "/tb/snippets.php?reverse=1&longlist=1&withmd5=1")); |
22 | } |
23 | |
24 | 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: | 417 / 1839 |
Version history: | 7 change(s) |
Referenced in: | [show references] |