Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

27
LINES

< > BotCompany Repo | #1001669 // File size watcher (big text)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (1252L/9K/28K).

!747

!1000805 // awt
!image classes

m {
  !include #1001425 // ShowBigText
  
  static int delay = 50;
  static S path = "/home/stefan/Desktop/Berserk! One of the longest chess videos on Youtube! Kingscrusher's Autumn blitz Marathon - YouTube [360p].mp4";
  static volatile long size;
  static volatile S text;
  
  p {
    new ShowBigText sbt;
    
    while (true) {
      size = getFileSize(path);
      sbt.title = "File Size";
      S newText = toK(size) + " KB";
      if (!eq(text, newText)) {
        text = newText;
        sbt.showText(text);
      }
      sleep(delay);
    }
  }
}

Author comment

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: #1001669
Snippet name: File size watcher (big text)
Eternal ID of this version: #1001669/1
Text MD5: d039bcc0a45ae0cbfa61dfb3cf60d941
Transpilation MD5: 0255bdbe9307b4447040946d92b7f306
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-11-01 17:51:30
Source code size: 619 bytes / 27 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 477 / 541
Referenced in: [show references]