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

28
LINES

< > BotCompany Repo | #1018411 // Random Cat Smilies

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Libraryless. Click here for Pure Java version (14349L/99K).

1  
!7
2  
3  
sS icons = [[
4  
  #1101394 - creditcard
5  
  #1101393 - money
6  
  #1101392 - favorite-fridge
7  
  #1101391 - cart
8  
  #1101390 - error
9  
  #1101389 - trash
10  
  #1101388 - read
11  
  #1101387 - remove
12  
  #1101386 - phone
13  
  #1101385 - info
14  
  #1101384 - mail
15  
  #1101383 - food-bowl
16  
  #1101382 - client
17  
]];
18  
19  
sclass Smiley > DynSCP {
20  
  start {
21  
    doEvery(5000, r revisualize2);
22  
  }
23  
  
24  
  JComponent visualize2() {
25  
    S imageID = first(random(map(tlft(icons), func(S s) -> LS { splitAt(s, " - ") })));
26  
    ret jimage(imageID);
27  
  }
28  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018411
Snippet name: Random Cat Smilies
Eternal ID of this version: #1018411/7
Text MD5: 9191aba2afa133f558ed2d403a724f52
Transpilation MD5: 9055b586126d41168adf44d82cfa0c7d
Author: stefan
Category: javax / stefan's os
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-14 16:52:28
Source code size: 537 bytes / 28 lines
Pitched / IR pitched: No / No
Views / Downloads: 380 / 547
Version history: 6 change(s)
Referenced in: [show references]