I hereby claim:
- I am zabirauf on github.
- I am zabirauf (https://keybase.io/zabirauf) on keybase.
- I have a public key ASARuUOjzzy29X8HMZTWPwaznADwtY2m8LXL_HshE-64-Ao
To claim this, I am signing this object:
| pragma solidity ^0.4.21; | |
| contract GlobalCalculator_V1 { | |
| uint[] internal _nums; | |
| function addNum(uint x) public { | |
| _nums.push(x); | |
| } | |
| function getSum() public view returns (uint sum) { |
| pragma solidity ^0.4.21; | |
| import "./Ownable.sol"; | |
| contract UpgradeableContractProxy is Ownable { | |
| address private _currentImplementation; | |
| function UpgradeableContractProxy() public Ownable() { | |
| } |
| pragma solidity ^0.4.15; | |
| import "truffle/Assert.sol"; | |
| import { StringToUintMap } from "../libraries/StringToUintMap.sol"; | |
| contract TestStringToUintMap { | |
| StringToUintMap.Data private _stringToUintMapData; | |
| function testInsertNewKey() { | |
| // Arrange |
| module.exports = { | |
| networks: { | |
| development: { | |
| host: "localhost", // Ganache RPC server URL | |
| port: 7545, // Ganache RPC server Port | |
| network_id: "*" // Match any network id | |
| } | |
| } | |
| }; |
| const StringToUintMap = artifacts.require("./StringToUintMap.sol"); | |
| const PersonsAge = artifacts.require("./PersonsAge.sol"); | |
| module.exports = function(deployer) { | |
| deployer.deploy(StringToUintMap); | |
| deployer.link(StringToUintMap, PersonsAge); | |
| deployer.deploy(PersonsAge); | |
| }; |
| // Code for PersonsAge.sol | |
| pragma solidity ^0.4.15; | |
| import { StringToUintMap } from "../libraries/StringToUintMap.sol"; | |
| contract PersonsAge { | |
| StringToUintMap.Data private _stringToUintMapData; |
| // Code for StringToUintMap.sol | |
| pragma solidity ^0.4.15; | |
| library StringToUintMap { | |
| struct Data { | |
| mapping (string => uint8) map; | |
| } | |
| function insert( |
| call plug#begin() | |
| " Autocompletion | |
| Plug 'roxma/nvim-completion-manager' | |
| Plug 'Valloric/YouCompleteMe', { 'do': './install.py --clang-completer --racer-completer --omnisharp-completer --tern-completer' } | |
| Plug 'ervandew/supertab' | |
| Plug 'SirVer/ultisnips' | |
| Plug 'honza/vim-snippets' | |
| " Buffer |
I hereby claim:
To claim this, I am signing this object:
| function append( | |
| arrOrNum: number | number[], | |
| toAppendArrOrNum: number | number[]): number[] { | |
| if (!Array.isArray(arrOrNum)) { | |
| arrOrNum = [arrOrNum]; | |
| } | |
| if (!Array.isArray(toAppendArrOrNum)) { | |
| toAppendArrOrNum = [toAppendArrOrNum]; |