Skip to content

Instantly share code, notes, and snippets.

View frostiq's full-sized avatar

Alex Bazhanau frostiq

View GitHub Profile
/**
* Created with IntelliJ IDEA.
* User: Аляксандр
* Date: 21.12.13
* Time: 8.27
* To change this template use File | Settings | File Templates.
*/
interface IInterval extends Cloneable, Comparable<IInterval>{
Number getBegin();
Number getEnd();
/**
* Created with IntelliJ IDEA.
* User: Аляксандр
* Date: 20.12.13
* Time: 23.06
* To change this template use File | Settings | File Templates.
*/
interface ITuple extends Cloneable, Comparable<ITuple>{
public int getSize();
public int getSum();
@frostiq
frostiq / gist:7911153
Last active December 31, 2015 00:59
H_Copy
#include <Windows.h>
#include <sstream>
#include <fstream>
#include "../../KWnd.h"
int CopyDirTo(const std::wstring& source_folder, const std::wstring& target_folder);
LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
UINT time;
#define TIMER 1
#define MS_TO_MINS 60000
#include <iostream>
#include <math.h>
#include <iterator>
#include <vector>
template <typename T>
struct AccumTraits
{
typedef T TAccum;
};
@frostiq
frostiq / KWnd
Last active December 30, 2015 11:59
#ifndef _KWND.H_
#define _KWND.H_
#include <windows.h>
#include <sstream>
#include <vector>
class KWnd
{
public: