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

25
LINES

< > BotCompany Repo | #1002623 // Image Cache Bot

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

Libraryless. Click here for Pure Java version (1580L/10K/34K).

!752

static S lastImage;

p {
  load("lastImage");
}

synchronized answer {
  if "last image"
    ret returnImage(lastImage);
}

static S returnImage(S imageURL) {
  imageURL = urlShortener(imageURL);
  synchronized(main.class) {
    lastImage = imageURL;
    save("lastImage");
  }
  ret "Lookie here: " + imageURL;
}

synchronized S getLastImage() {
  ret lastImage;
}

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: #1002623
Snippet name: Image Cache Bot
Eternal ID of this version: #1002623/1
Text MD5: baa9789f04ea8b0412760f4faf864eda
Transpilation MD5: eec7b5e54d4dcb73bbea524e08086e40
Author: stefan
Category: eleu
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-02-05 23:57:00
Source code size: 395 bytes / 25 lines
Pitched / IR pitched: No / No
Views / Downloads: 532 / 868
Referenced in: [show references]