Skip to content

Instantly share code, notes, and snippets.

View valuks's full-sized avatar

Vaļuks valuks

View GitHub Profile
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <vector>
#include <math.h>
// using namespace std;
namespace patch
var Likes, Shares, count, next, random;
next = function(query, callback, times = 20, time = 0) {
return setTimeout(() => {
if (time >= times) {
return console.error(`script error ${times} ${time}`);
}
if (query()) {
return callback();
}