1 | static S loadNTSnippet(S id) {
|
2 | long _id = parseSnippetID(id); |
3 | File f = getCacheProgramFile("#1005128", _id + ".txt");
|
4 | if (f.length() != 0) |
5 | ret loadTextFile(f); |
6 | else {
|
7 | S s = loadSnippet(id); |
8 | if (nempty(s)) |
9 | saveTextFile(f, s); |
10 | ret s; |
11 | } |
12 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1005218 |
| Snippet name: | loadNTSnippet - load NT snippet with caching |
| Eternal ID of this version: | #1005218/1 |
| Text MD5: | 3fee0ed5a4f0d2eceab80484a189410d |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-10-23 23:15:23 |
| Source code size: | 278 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 810 / 832 |
| Referenced in: | [show references] |