Skip to content

Instantly share code, notes, and snippets.

View SergiusTheBest's full-sized avatar

Sergey Podobry SergiusTheBest

View GitHub Profile
@SergiusTheBest
SergiusTheBest / package.json
Created December 24, 2019 17:37
Sample package.json for testing delete folder speed on Windows/Linux
{
"name": "demo",
"version": "1.0.0",
"build_number": "1",
"description": "demo",
"main": "main.js",
"dependencies": {
"electron-notify": "0.1.0",
"electron-unhandled": "1.1.0",
"node-ipc": "9.1.1"
@SergiusTheBest
SergiusTheBest / H264_Decoder.cpp
Created May 17, 2016 19:50 — forked from roxlu/H264_Decoder.cpp
LibAV parser and decoder example with openGL (YUV420 -> RGB shader).
#include "H264_Decoder.h"
H264_Decoder::H264_Decoder(h264_decoder_callback frameCallback, void* user)
:codec(NULL)
,codec_context(NULL)
,parser(NULL)
,fp(NULL)
,frame(0)
,cb_frame(frameCallback)
,cb_user(user)
@SergiusTheBest
SergiusTheBest / gist:1ce2dce0f9fdd24351dd
Created November 12, 2015 14:38
Use of std clock to calculate a time span
auto start = std::chrono::high_resolution_clock::now();
::Sleep(1000);
auto end = std::chrono::high_resolution_clock::now();
auto duration = std::chrono::duration_cast<std::chrono::duration<double, std::mili>>(end - start);
std::cout << duration.count();