I hereby claim:
- I am aabdulwahed on github.
- I am aabdulwahed (https://keybase.io/aabdulwahed) on keybase.
- I have a public key ASDczd7By1Pgnlloa5v0v1immlNCWdnJ_wjQ9wBoWSbdWQo
To claim this, I am signing this object:
| from rest_framework.generics import (ListAPIView, | |
| RetrieveAPIView, | |
| DestroyAPIView, | |
| RetrieveUpdateAPIView, | |
| CreateAPIView, | |
| GenericAPIView, | |
| ) | |
| from rest_framework.mixins import UpdateModelMixin, DestroyModelMixin | |
| from rest_framework.parsers import MultiPartParser, FormParser | |
| from rest_framework.serializers import ValidationError |
| """Simple failure detector""" | |
| import time | |
| import zmq | |
| def pingo(url, hosts, node_id): | |
| ctx = zmq.Context.instance() | |
| server = ctx.socket(zmq.REP) | |
| server.bind(url) |
| import asyncio | |
| @asyncio.coroutine | |
| def waiting(r): | |
| print("hello from waiting -", r) | |
| yield from asyncio.sleep(2) | |
| print("bye from waiting -", r) | |
| return r |
| # For more info about the below commands check out the below links: | |
| # https://hyperledger.github.io/composer/installing/development-tools.html | |
| # https://hyperledger.github.io/composer/tutorials/developer-tutorial.html | |
| curl -O https://hyperledger.github.io/composer/prereqs-ubuntu.sh | |
| chmod u+x prereqs-ubuntu.sh | |
| ./prereqs-ubuntu.sh |
| Traceback (most recent call last): | |
| File "exporter.py", line 18, in <module> | |
| chat, limit=100) | |
| File "/usr/local/lib/python3.4/dist-packages/telethon/telegram_client.py", line 758, in get_message_history | |
| hash=0 | |
| File "/usr/local/lib/python3.4/dist-packages/telethon/telegram_bare_client.py", line 438, in __call__ | |
| result = self._invoke(call_receive, *requests) | |
| File "/usr/local/lib/python3.4/dist-packages/telethon/telegram_bare_client.py", line 483, in _invoke | |
| self._sender.send(*requests) | |
| File "/usr/local/lib/python3.4/dist-packages/telethon/network/mtproto_sender.py", line 106, in send |
I hereby claim:
To claim this, I am signing this object:
https://github.com/juj/emsdk @ 2324e5d8
LLVM_CMAKE_ARGS="-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly" emsdk install sdk-tag-1.37.28-64bit (be patient!)To activate correct paths for emscripten and dependencies use:
./emsdk activate sdk-tag-1.37.28-64bit./emsdk_env.shBasic requirements:
Preferred Qualifications
Previously described at: ERC20 critical problems medium article.
ERC20 is the most common Ethereum token standard. It should be noted that it is also the first Ethereum's token standard as well.
It is also important that the original ERC20 proposal is a definition of token interface. EIP20 does not define a reference implementation for this token standard. Here is OpenZeppelin implementation of ERC20 token: https://github.com/OpenZeppelin/zeppelin-solidity/tree/master/contracts/token/ERC20
ERC20 token standard implementation assumes two ways of token transferring: (1) transfer function and (2) approve + transferFrom pattern.
| pragma solidity ^0.4.25; | |
| contract FirstContract{ | |
| uint256 private counter = 0; | |
| event newEvent(string _value, uint256 _counter) anonymous; | |
| function testEvent() public { | |
| counter +=1; | |
| emit newEvent("test event", counter); | |
| } | |
| } |