Libraryless. Click here for Pure Java version (1580L/10K/34K).
1 | !752 |
2 | |
3 | static S lastImage; |
4 | |
5 | p { |
6 | load("lastImage"); |
7 | } |
8 | |
9 | synchronized answer { |
10 | if "last image" |
11 | ret returnImage(lastImage); |
12 | } |
13 | |
14 | static S returnImage(S imageURL) { |
15 | imageURL = urlShortener(imageURL); |
16 | synchronized(main.class) { |
17 | lastImage = imageURL; |
18 | save("lastImage"); |
19 | } |
20 | ret "Lookie here: " + imageURL; |
21 | } |
22 | |
23 | synchronized S getLastImage() { |
24 | ret lastImage; |
25 | } |
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: | 600 / 959 |
Referenced in: | [show references] |