Skip to content

Instantly share code, notes, and snippets.

View frostiq's full-sized avatar

Alex Bazhanau frostiq

View GitHub Profile
@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:
#include <iostream>
#include <math.h>
#include <iterator>
#include <vector>
template <typename T>
struct AccumTraits
{
typedef T TAccum;
};
@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
/**
* 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();
/**
* 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();
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
public class MainWindow extends JFrame{
JTextArea chatArea = new JTextArea();
JButton netAction = new JButton();
JTextField IPfield = new JTextField();
JRadioButton clientMode = new JRadioButton("Client mode");
0x001D51cDC8f4B378e136642DdB95Dfc4fF6a4B72
@frostiq
frostiq / IouRoots.sol
Created July 27, 2017 08:47 — forked from anonymous/ballot.sol
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.13+commit.fb4cb1a.js&optimize=undefined&gist=
pragma solidity ^0.4.13;
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal constant returns (uint256) {
pragma solidity ^0.4.11;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;

Pooledfund smart contracts audit

Source code version

The current audit was conducted against smart-contracts in the next repository:

[email protected]:pooledfund/contracts.git

with commit hash 6a0da7d77fdc17699255e501326d20073c7c6240

and last modification date: Fri Feb 23 08:30:03 2018 UTC