Skip to content

Instantly share code, notes, and snippets.

View Naltharial's full-sized avatar

Primož Jeras Naltharial

View GitHub Profile
17:34 D:\Development\AppAdvice\FileScan\Redacted.ai-API-Internal-V1\WebAPI> pipenv run python .\cli.py -t eyJhbGciOiJSUzI1NiIsImtpZCI6IjRlMjdmNWIwNjllYWQ4ZjliZWYxZDE0Y2M2Mjc5YmRmYWYzNGM1MWIiLCJ0eXAiOiJKV1QifQ.eyJuYW1lIjoiTHVjaXVzIE1hbmxpdXMiLCJwaWN0dXJlIjoiaHR0cHM6Ly9saDMuZ29vZ2xldXNlcmNvbnRlbnQuY29tLy04cTdyT0d1SWFqWS9BQUFBQUFBQUFBSS9BQUFBQUFBQUFBQS9BQ0hpM3Jma3ZOcG45R2U2dkpvUW1VdEZ5NWVmWHU0by1nL3Bob3RvLmpwZyIsInJvbGVzIjp7IlYwQlhZZklNb1hYZ0RoY2EwRDZFIjoicmVhZCIsIlJyU2xpRjJPZVJ5dk5ib0huTFNNIjoib3duZXIifSwiYWNjZXNzX2lkcyI6WyJWMEJYWWZJTW9YWGdEaGNhMEQ2RSIsIlJyU2xpRjJPZVJ5dk5ib0huTFNNIl0sImlzcyI6Imh0dHBzOi8vc2VjdXJldG9rZW4uZ29vZ2xlLmNvbS9yZWRhY3RlZC1haS1iZXRhIiwiYXVkIjoicmVkYWN0ZWQtYWktYmV0YSIsImF1dGhfdGltZSI6MTU5MjIyNDMxNiwidXNlcl9pZCI6IkhvVFlvb0FsVllVWlJBbmVNMGRiVTMxdE84MDMiLCJzdWIiOiJIb1RZb29BbFZZVVpSQW5lTTBkYlUzMXRPODAzIiwiaWF0IjoxNTkyMjMyMjcxLCJleHAiOjE1OTIyMzU4NzEsImVtYWlsIjoibHVjaXVzLm1hbmxpdXNAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImZpcmViYXNlIjp7ImlkZW50aXRpZXMiOnsiZ29vZ2xlLmNvbSI6WyIxMTYzODcyMjk5MTg
size_t shrRoundUp(size_t localWorkSize, size_t numItems) {
size_t result = localWorkSize;
while (result < numItems)
result += localWorkSize;
return result;
}
int fileToString(const char *filename, std::string& s)
{
size_t size;
char* str;
std::fstream f(filename, (std::fstream::in | std::fstream::binary));
if (f.is_open())
{
size_t fileSize;
f.seekg(0, std::fstream::end);