This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*POST.data: | |
| 1234 = 12 Гц | |
| 2345 = 2 Гц | |
| 3456 = 1 Гц | |
| 4567 = 1 Гц | |
| 5678 = 1 Гц | |
| 6781 = 2 Гц | |
| */ | |
| var n=8; | |
| var base="0".charCodeAt(0);var as_str=i=>String.fromCharCode(base+i);var from_str=s=>s.split("").map(e=>e.charCodeAt(0)-base); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var fs=require("fs");var json=JSON.stringify; | |
| log=console.log;//("ok"); | |
| var s=""+require('child_process').execSync("find -type f"); | |
| var fn2stat={}; | |
| var f2s=JSON.parse(fs.readFileSync("fn2stat_backup2.json")+""); | |
| var f=fn=>{ | |
| var i=fs.statSync(fn); | |
| fn2stat[fn]=i; | |
| var s=fs.readFileSync(fn)+""; | |
| var postfix=""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // forked from https://gamedev.ru/files/?id=138400 | |
| #include <windows.h> | |
| #include <shellapi.h> | |
| #include <cstdint> | |
| #include <cstdio> | |
| #include <cmath> | |
| #include <cstring> | |
| #include <cstdarg> | |
| #include <array> | |
| #include <vector> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // nodejs | |
| var arr=POST.data.split("\n"); // <- image_parsed.csv | |
| arr=arr.map(e=>e.split(",")); | |
| var u=arr[0];var jud=[]; | |
| var A=arr.slice(1); | |
| var zzz=A.map((e,i)=>{var t={};var q=[];u.map((k,j)=>{t[k]=e[j];if(j>=2)q.push(e[j]*1.0);if(j>=2)getdef(jud,j-2,[]).push(JSON.parse(e[j]));});q.pop();t.q=qapavg(q);return t;}); | |
| var JV=jud.map(e=>{var t={min:qapmin(e),avg:qapavg(e),max:qapmax(e)};return t;}) | |
| var jud_func=(v,id)=>{var ex=JV[id];return (v-ex.min)/(ex.max-ex.min)*100;} | |
| A.map((e,i)=>{var t=zzz[i];var q=[];u.map((k,j)=>{if(j>=2){var w=jud_func(e[j]*1.0,j-2);q.push(w);t[k]=w.toFixed(2);}});q.pop();t.q=qapavg(q);}); | |
| //return inspect(jud.map(e=>{var t={min:qapmin(e),avg:qapavg(e),max:qapmax(e)};return t;})); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <thread> | |
| #include <iostream> | |
| #include <queue> | |
| #include <mutex> | |
| #include <atomic> | |
| #include <string> | |
| #include <condition_variable> | |
| using namespace std; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| struct t_world{}; // t_world | |
| t_world_frag to_client=apply_fog_of_war_for(server_side_world,client); | |
| struct t_world_frag{}; // t_client_side_world | |
| // get_commulative_clients_info(recs,inp_frag).foreach_client(client=>get_frendly_value(client)).sum_all(); | |
| // diff(smart_sizeof(t_world),smart_sizeof(t_world_frag)) |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "gid": "190216", | |
| "t": "23.04.18. 15:04", | |
| "players": [ | |
| { | |
| "pid": "806", | |
| "nick": "Adler", | |
| "v": "(12286)", | |
| "score": 1336 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1 Erop Sergeev 42.056 | |
| 2 Андрей Токарев (T1024) 41.403 | |
| 3 Станислав Поволоцкий 41.194 | |
| 4 Дмитрий Добровольский (disky) 38.678 | |
| 5 Иван Кашин (Adler) 37.594 | |
| 6 Батончик Шоколадный 37.173 | |
| 7 Dmitry Dolgopolov 37.096 | |
| 8 Виталий Дятлов (xytop) 36.158 | |
| 9 Артём Жигар (zhigarartem) 35.989 | |
| 10 Михаил Харчук 35.853 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="Windows-1252" ?> | |
| <NotepadPlus> | |
| <LexerStyles> | |
| <LexerType name="actionscript" desc="ActionScript" ext=""> | |
| <WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" /> | |
| <WordsStyle name="FUNCTION" styleID="20" fgColor="95004A" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" keywordClass="type2" /> | |
| <WordsStyle name="PREPROCESSOR" styleID="9" fgColor="804000" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" /> | |
| <WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" /> | |
| <WordsStyle name="TYPE WORD" styleID="16" fgColor="8000FF" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" keywordClass="type1" /> | |
| <WordsStyle name="NUMBER" styleID="4" fgColor="FF8000" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <string> | |
| using std::string; | |
| inline string to_hex(unsigned char v){ | |
| char buf[3]={0,0,0}; | |
| sprintf(buf,"%02x",v); | |
| return buf; | |
| } | |
| inline char from_hex(char c1,char c2){ |