Skip to content

Instantly share code, notes, and snippets.

View sprour's full-sized avatar

Sergei Prohhorov sprour

  • Sergei Prohhorov
View GitHub Profile
@sprour
sprour / osom.md
Created January 19, 2021 19:48 — forked from sizovs/osom.md
OSOM.md
// 1. refactor the code so it's at the same level of abstraction (SLAP).
int from = 8000;
int to = 9000;
IntStream
.rangeClosed(from, to)
.mapToObj(Port::new)
.filter(Port::isFree)
.findFirst();
class Port {
@sprour
sprour / OsomToken.sol
Created January 7, 2019 12:47
Osom Token
pragma solidity ^0.5.0;
contract OsomToken {
string public name = "Osom Token";
string public symbol = "OSOM";
string public standard = "OSOM Token v1.0";
uint256 public totalSupply;
event Transfer(
address indexed _from,