1 | // f : voidfunc(S ua, S ip, bool hasCookie) |
2 | static void ai1lol_onNewUAIP_noLookback(double interval, fO f) { |
3 | doEvery(toMS(interval), 0, new Runnable { |
4 | S last = last(tlft(loadPage("http://ai1.lol/1002157/raw/uaips"))); |
5 | |
6 | public void run() { |
7 | L<S> lines = tlft(loadPage("http://ai1.lol/1002157/raw/uaips?after=" + urlencode(last))); |
8 | L l = (L) map safeUnstructure(lines); |
9 | for (O x : l) |
10 | pcallF(f, getString(x, 'ua), getString(x, 'ip), getBool(x, 'hasCookie)); |
11 | if (nempty(l)) last = last(lines); |
12 | } |
13 | }); |
14 | } |
Began life as a copy of #1010791
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: | #1010794 |
Snippet name: | ai1lol_onNewUAIP_noLookback - on new user agent and IP seen, don't look into history |
Eternal ID of this version: | #1010794/3 |
Text MD5: | 61289022fb4c8a2c0b6859f781567f5b |
Author: | stefan |
Category: | javax / networking |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-08 22:44:36 |
Source code size: | 561 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 382 / 418 |
Version history: | 2 change(s) |
Referenced in: | [show references] |