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

22
LINES

< > BotCompany Repo | #1010492 // Test loading all downloaded diagrams [OK]

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

Download Jar. Libraryless. Click here for Pure Java version (12435L/86K).

!7

p {
  for (File f : listFilesOfProgram_notDirs(#1010484)) {
    if (!isPossibleMD5(f.getName())) continue;
    print(f);
    if (fileStartsWith(f, toUtf8("CirclesAndLines"))) {
      print("Diagram!");
      pcall-short {
        cal_unstructure(loadTextFile(f));
        print("Unstructured.");
      }
    } else if (isGZ(f)) {
      print("GZipped!");
      Concepts c = new Concepts().loadGrab(loadGZippedTextFile(f), true);
      print("Concepts: " + renderConceptClassesWithCount(c));
      L<S> structures = getFieldOfAllConceptClasses(c, 'calStructure);
      print("Got " + n(structures, "diagram"));
    } else
      print("Huh?");
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1010492
Snippet name: Test loading all downloaded diagrams [OK]
Eternal ID of this version: #1010492/5
Text MD5: 8368c2b5c6cec565229d9a62db503de5
Transpilation MD5: 44be405811b2e70fe4b50db15586f6e6
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-18 20:30:01
Source code size: 672 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 514 / 1057
Version history: 4 change(s)
Referenced in: [show references]