Libraryless. Click here for Pure Java version (1939L/14K/42K).
!747 !1000805 // awt !image classes m { !include #1001425 // ShowBigText static S os; static boolean wtf; p { readLocally("os"); new ShowBigText sbt; sbt.title = "OS Sensor"; if (os != null) sbt.showText(os + "!"); while (true) { S theOS = getOS(); if (os != null && !eq(os, theOS)) { for (int i = 0; i < 3; i++) { wtf = true; sbt.showText("WTF!"); sleepSeconds(1); sbt.showText(os + "!"); sleepSeconds(1); sbt.showText(theOS + "!"); sleepSeconds(1); } wtf = false; } if (!eq(os, theOS)) { os = theOS; saveLocally("os"); sbt.showText(os + "!"); } sleepSeconds(5); } } static S getOS() { if (isAndroid()) ret "Android"; if (isMac()) ret "Mac OS"; if (isWindows()) ret "Windows"; ret "Linux"; // Everything else is Linux... Yeah it's generous :) } }
Began life as a copy of #1001464
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, dhtvkmknsjym, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001468 |
Snippet name: | OS Sensor 2: OS Sensor with Memory |
Eternal ID of this version: | #1001468/1 |
Text MD5: | 560fa4593d6fdf11ef8b81dbdb56a6e7 |
Transpilation MD5: | cec0e8e61a8a5347fb4fe7411c593c70 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-10-17 15:08:58 |
Source code size: | 1031 bytes / 48 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 523 / 1213 |
Referenced in: | [show references] |