I hereby claim:
- I am k06a on github.
- I am k06a (https://keybase.io/k06a) on keybase.
- I have a public key ASCluXHEStF-cY5wgzsAWQsU50gb7uxtC1fpJlQYS-22_Qo
To claim this, I am signing this object:
contract MultidimensionalToken { | |
string public name; | |
string public symbol; | |
mapping (uint256 => string) internal tokenNames; | |
mapping (uint256 => string) internal tokenSymbols; | |
mapping (uint256 => uint8) internal tokenDecimals; | |
mapping (uint256 => mapping (address => uint)) internal balances; | |
#include <iostream> | |
#include <list> | |
#include <deque> | |
#include <vector> | |
// Can use mpark instead of std: https://github.com/mpark/variant | |
//#include "variant.hpp" | |
#include <variant> | |
// |
pragma solidity ^0.4.21; | |
/** | |
* @title SafeMath | |
* @dev Math operations with safety checks that throw on error | |
*/ | |
library SafeMath { | |
/** |
Verifying my Blockstack ID is secured with the address 19mtYjEqL9bXWsDBUgHtaLRneCiB4FWwma https://explorer.blockstack.org/address/19mtYjEqL9bXWsDBUgHtaLRneCiB4FWwma |
#!/bin/bash | |
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | |
# magnet:?xt=urn:btih:7ffbcd8cee06aba2ce6561688cf68ce2addca0a3 | |
# 1. Fixed letter1, letter2, letter3 assignments for macOS compatibility | |
# 2. Changed grep to sgrep (sorted grep), need to preinstall: npm i -g sgrep | |
if [ "$1" != "" ]; then | |
letter1=$(echo ${1:0:1}) | |
if [[ $letter1 == [a-zA-Z0-9] ]]; then |
// https://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetParallel | |
function countBits(uint256 v) public constant returns(uint256) { | |
v = v - ((v >> 1) & uint256(~uint256(0)/3)); | |
v = (v & uint256(~uint256(0)/15*3)) + ((v >> 2) & uint256(~uint256(0)/15*3)); | |
v = (v + (v >> 4)) & uint256(~uint256(0)/255*15); | |
return uint256(v * (uint256(~uint256(0)/255))) >> (32 - 1) * 8; | |
} |
var abi = require('ethereumjs-abi'); | |
var x = abi.simpleEncode("constructor(uint256,uint256,uint256,address,address,address,address)", | |
1508878283, | |
1519431362, | |
4700, | |
"0x0b8e27013dfA822bF1cc01b6Ae394B76DA230a03", | |
"0x5F85A0e9DD5Bd2F11a54b208427b286e9B0B519F", | |
"0x7F781d08FD165DBEE1D573Bdb79c43045442eac4", | |
"0x98bf67b6a03DA7AcF2Ee7348FdB3F9c96425a130"); |
# Installing ffmpeg with H265 support | |
brew tap varenc/ffmpeg | |
brew install varenc/ffmpeg/ffmpeg --with-fdk-aac --HEAD | |
# Installing mp4edit tool | |
brew install bento4 |
pragma solidity ^0.4.0; | |
contract VanityTask { | |
function lengthOfCommonPrefix(bytes a, bytes b) constant returns(uint) { | |
uint len = (a.length <= b.length) ? a.length : b.length; | |
for (uint i = 0; i < len; i++) { | |
if (a[i] != b[i]) { | |
return i; | |
} |
I hereby claim:
To claim this, I am signing this object: