// f : voidfunc(S ua, S ip) static void ai1lol_onNewUAIP(double interval, fO f) { doEvery(toMS(interval), 0, new Runnable { S last; public void run() { L<S> lines = tlft(loadPage("http://ai1.lol/1002157/raw/uaips?after=" + urlencode(last))); L l = (L) map safeUnstructure(lines); for (O x : l) pcallF(f, getString(x, 'ua), getString(x, 'ip)); if (nempty(l)) last = last(lines); } }); }
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: | #1010791 |
| Snippet name: | ai1lol_onNewUAIP - on new user agent and IP seen |
| Eternal ID of this version: | #1010791/8 |
| Text MD5: | 0b9dcada985c9bc37d9fee94d360d428 |
| Author: | stefan |
| Category: | javax / networking |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-10-03 18:31:18 |
| Source code size: | 451 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 619 / 677 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |