This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Lab1.cpp : Этот файл содержит функцию "main". Здесь начинается и заканчивается выполнение программы. | |
// | |
#include "pch.h" | |
#include <iostream> | |
#include <math.h> | |
#include <string> | |
#include <regex> | |
#define deltaX 0.5 | |
#define startX -1.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.24; | |
contract depositToken { | |
struct depositStruct { | |
uint percent; | |
string currency; | |
uint startDate; | |
uint depositTime; | |
string bank; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.0; | |
contract Ballot { | |
struct Voter { | |
uint weight; | |
bool voted; | |
uint8 vote; | |
address delegate; | |
} | |
struct Proposal { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.0; | |
contract Ballot { | |
struct Voter { | |
uint weight; | |
bool voted; | |
uint8 vote; | |
address delegate; | |
} | |
struct Proposal { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]) |