Skip to content

Instantly share code, notes, and snippets.

View VenkarD's full-sized avatar

Egor Sechinski VenkarD

View GitHub Profile
@VenkarD
VenkarD / lab1.cpp
Created September 18, 2019 16:18
lab1
// Lab1.cpp : Этот файл содержит функцию "main". Здесь начинается и заканчивается выполнение программы.
//
#include "pch.h"
#include <iostream>
#include <math.h>
#include <string>
#include <regex>
#define deltaX 0.5
#define startX -1.7
@VenkarD
VenkarD / ForeignBridge.sol
Created July 15, 2018 03:50
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity ^0.4.24;
contract Config {
function getSerializedData(uint _tokenId) public returns (bytes32[] _data);
function recoveryToken(uint _tokenId, bytes32[] _data) public returns (bool _status);
function demolishToken(uint _tokenId) public;
}
contract ForeignBridge
{
event UserRequestsForSignature(address _from,uint _tokenId,bytes32[]);
event transferCompleted(uint _tokenId);
@VenkarD
VenkarD / test.sol
Last active July 12, 2018 02:50
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity ^0.4.24;
contract depositToken {
struct depositStruct {
uint percent;
string currency;
uint startDate;
uint depositTime;
string bank;
@VenkarD
VenkarD / ballot.sol
Created July 12, 2018 01:27
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity ^0.4.0;
contract Ballot {
struct Voter {
uint weight;
bool voted;
uint8 vote;
address delegate;
}
struct Proposal {
@VenkarD
VenkarD / ballot.sol
Created July 12, 2018 01:26
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=true&gist=
pragma solidity ^0.4.0;
contract Ballot {
struct Voter {
uint weight;
bool voted;
uint8 vote;
address delegate;
}
struct Proposal {
@VenkarD
VenkarD / multMatrix
Last active May 20, 2018 20:24
Matrix multiplication and addition writed on Python3.6
import random
class Matrix:
def __init__(self, matr, rand=False, kv=False):
if rand==True:
self.row, self.column = [random.randrange(0, 10) for a in range(2)] if kv == True else [2, 2]
self.matrix = [[random.randrange(0, 10) for a in range(self.row)] for b in range(self.column)]
else:
self.column = len(matr[0])