Skip to content

Instantly share code, notes, and snippets.

View dworznik's full-sized avatar

Patryk Dwórznik dworznik

  • Seoul, South Korea
  • 10:58 (UTC +09:00)
View GitHub Profile
길동,Gil-dong
천호2동,Cheonho 2(i)-dong
암사1동,Amsa 1(il)-dong
둔촌2동,Dunchon 2(i)-dong
둔촌1동,Dunchon 1(il)-dong
성내3동,Seongnae 3(sam)-dong
성내2동,Seongnae 2(i)-dong
성내1동,Seongnae 1(il)-dong
천호3동,Cheonho 3(sam)-dong
천호1동,Cheonho 1(il)-dong
@dworznik
dworznik / API.md
Created July 5, 2018 16:27 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

{"jsonrpc":"2.0","id":1,"method":"net_version","params":[]}
{"jsonrpc":"2.0","result":"1","id":1}
{"jsonrpc":"2.0","id":2,"method":"eth_newBlockFilter","params":[]}
{"jsonrpc":"2.0","result":"0x130a","id":2}
{"jsonrpc":"2.0","id":3,"method":"eth_getBlockByNumber","params":["latest",false]}
{"jsonrpc":"2.0","result":{"author":"0xb2930b35844a230f00e51431acae96fe543a0347","difficulty":"0xc4323295356bb","extraData":"0x73656f3130","gasLimit":"0x7a11f8","gasUsed":"0x79cacf","hash":"0xcf86e82e596765bdca7ea5c8807a2b9f9d6a3e8b08f0a5e6264305f167eca065","logsBloom":"0x8800009628510910ea4404c200048240e90380443200445040e323b5668d0d0c919045004813139820a00520900800088a0201005c984001a0888e048122f82106a06a4b0f011082012c1ec9918c2429244c1982a6b100468000550886802a6121008502a4a00441902060c114148180320491cde0a012ae0822a331010068d325ac084024240014009d58401f314000040890030163100c482a68005420001c066002c4a4004895e1468188a184a04a19d0658824119a044013ae421d820105c0060a0a818010080474d018004822489001402c070c0456c04842800442000464d1614c40
dapps@0.0.0 /Users/dwuziu/Work/Veritaseum/dapps
├── @angular-redux/store@7.1.1
├─┬ @angular/animations@5.2.9
│ └── tslib@1.8.1
├─┬ @angular/cdk@5.2.4
│ └── tslib@1.8.1 deduped
├─┬ @angular/cli@1.6.3
│ ├─┬ @angular-devkit/build-optimizer@0.0.38
│ │ ├── loader-utils@1.1.0 deduped
│ │ ├── source-map@0.5.7 deduped
@dworznik
dworznik / -
Created December 19, 2017 22:14
pragma solidity ^0.4.13;
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public constant returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
}
contract ERC20 is ERC20Basic {
@dworznik
dworznik / -
Created December 5, 2017 12:59
/zeppelin-solidity/contracts/ownership/Ownable.sol:20:3: Warning: No visibility specified. Defaulting to "public".
function Ownable() {
^
Spanning multiple lines.
pragma solidity ^0.4.13;
contract Ownable {
address public owner;
@dworznik
dworznik / -
Created November 14, 2017 02:14
pragma solidity ^0.4.13;
contract IEtherDelta {
address public admin; //the admin address
address public feeAccount; //the account that will receive fees
address public accountLevelsAddr; //the address of the AccountLevels contract
uint public feeMake; //percentage times (1 ether)
uint public feeTake; //percentage times (1 ether)
uint public feeRebate; //percentage times (1 ether)
mapping (address => mapping (address => uint)) public tokens; //mapping of token addresses to mapping of account balances (token=0 means Ether)
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"cloudformation:Describe*",
"cloudformation:List*",
"cloudformation:Get*",
"cloudformation:PreviewStackUpdate",
@dworznik
dworznik / -
Created November 2, 2017 12:55
pragma solidity ^0.4.13;
contract Ownable_ {
address public owner;
function Ownable() {
owner = msg.sender;
}
modifier onlyOwner() {
@dworznik
dworznik / -
Created November 2, 2017 12:53
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) {