Skip to content

Instantly share code, notes, and snippets.

View slavagoreev's full-sized avatar
🏠
Working from home

Vyacheslav Goreev slavagoreev

🏠
Working from home
  • Innopolis, Russia
View GitHub Profile
@slavagoreev
slavagoreev / frontend.instruction.sh
Created September 11, 2018 13:34
Frontend Instruction
# Go to your projects' folder and clone the repo of club portal.
git clone https://gitlab.com/InnoWebdev/club-portal
cd club-portal
# Checkout our training branch
git checkout frontend/structure
cd frontend
# And intstall all neccessary packages (be sure that you have Node.js installed)
npm install
# Let's go to the very begining

Bad

  • Hardcoded templates
  • Violating 120 symbols per string
  • No DRY ever

Not so good

.gitignore

__pycache__
Parsers/__pycache__

backend/pycache

gistup
@slavagoreev
slavagoreev / .config
Last active September 24, 2019 17:09
#
# Common config options automatically generated by splitconfig.pl
#
CONFIG_104_QUAD_8=m
CONFIG_60XX_WDT=m
CONFIG_64BIT=y
CONFIG_6LOWPAN=m
# CONFIG_6LOWPAN_DEBUGFS is not set
# CONFIG_6LOWPAN_GHC_EXT_HDR_DEST is not set
# CONFIG_6LOWPAN_GHC_EXT_HDR_FRAG is not set
@slavagoreev
slavagoreev / Calculator.sol
Last active November 23, 2020 12:15
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=false&runs=200&gist=
pragma solidity 0.4.24;
contract Calculator {
int result = 0;
constructor() public { }
function getResult() public view returns (int)
{
return result;
@slavagoreev
slavagoreev / auction.sol
Created March 25, 2021 12:25
Lab #2. Auction
pragma solidity ^0.4.8;
contract Auction {
// static
address public owner;
uint public bidIncrement;
uint public startBlock;
uint public endBlock;
string public ipfsHash;
@slavagoreev
slavagoreev / InnoCoin.sol
Created April 6, 2021 12:49
Contract for lab #5
pragma solidity ^0.4.19;
contract InnoCoin {
string public constant name = "InnoCoin";
string public constant symbol = "INC";
uint8 public constant decimals = 18;
event Approval(address indexed tokenOwner, address indexed spender, uint tokens);
@slavagoreev
slavagoreev / NFT.sol
Created April 8, 2021 12:43
Lab #6. NFT Exchange
pragma solidity ^0.4.19;
contract ERC20 {
string public name;
string public symbol;
string public website;
address public base_address;
address public owner_address;
event Approval(address indexed tokenOwner, address indexed spender, uint tokens);