Libraryless. Click here for Pure Java version (1885L/13K/41K).
!747 !1000805 // awt !image classes m { !include #1001425 // ShowBigText static int delay = 2000; static volatile boolean up; // make translator happy... !include #2000515 // unquote !include #1000709 // formatSnippetID p { new ShowBigText sbt; while (true) { up = centralServerUp(5000); sbt.title = (up ? "Up" : "Down") + ": Server"; sbt.background = up ? Color.green : Color.red; sbt.showText(up ? "UP" : "DOWN"); sleep(delay); } } }
Began life as a copy of #1001652
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001655 |
Snippet name: | Central Server Up? |
Eternal ID of this version: | #1001655/1 |
Text MD5: | e3c260ff1d60dfee996e2225945db92b |
Transpilation MD5: | e70c4eeaa35a4774acf29ebca27649da |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-11-01 13:41:39 |
Source code size: | 533 bytes / 26 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 603 / 738 |
Referenced in: | #3000190 - Answer for stefanreich(>> t 20 questions) #3000382 - Answer for ferdie (>> t = 1, f = 0) #3000383 - Answer for funkoverflow (>> t=1, f=0 okay) |