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

18
LINES

< > BotCompany Repo | #1004375 // Find Successful System Commands & Applaud Yourself

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

Libraryless. Click here for Pure Java version (2502L/16K/57K).

!752

p {
  for (File f : allEventLogs()) {
    L<S> log = scanEventLogForText(f);
    for (int i = 0; i+2 < l(log); i++) {
      S a = log.get(i), b = log.get(i+1), c = log.get(i+2);
      if (startsWith(a, "!j")
        && startsWith(b, "[system]")
        && match("yes", c)) {
        print(indentx("> ", fromLines(a, b, c)) + "\nYES!!\n");
        applaud();
      }
    }
  }
  
  doneAnim();
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1004375
Snippet name: Find Successful System Commands & Applaud Yourself
Eternal ID of this version: #1004375/1
Text MD5: 27db8a3f5c0cff71fb57bfd7d623d311
Transpilation MD5: cb1e53ef83ba7e2a3422a410d06a9dc0
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-15 13:21:22
Source code size: 417 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 583 / 669
Referenced in: #1007897 - Analyze Dialog [dev.]