Allows accounts to be blacklisted by a "blacklister" role
| name | type | description |
|---|---|---|
| _account | address | The address to remove from the blacklist |
| Removes account from blacklist |
| try: | |
| import faiss | |
| except: | |
| !pip install faiss-cpu -q | |
| import faiss | |
| # Build the index | |
| d = embeddings.shape[1] # Dimension | |
| index = faiss.IndexFlatL2(d) |
| { | |
| "deploy": { | |
| "VM:-": { | |
| "linkReferences": {}, | |
| "autoDeployLib": true | |
| }, | |
| "main:1": { | |
| "linkReferences": {}, | |
| "autoDeployLib": true | |
| }, |
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.6.0; | |
| import "./Ownable.sol"; | |
| /** | |
| * @title Blacklistable Token | |
| * @dev Allows accounts to be blacklisted by a "blacklister" role | |
| */ | |
| contract Blacklistable is Ownable { |
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.6.0; | |
| import "./Ownable.sol"; | |
| /** | |
| * @title Blacklistable Token | |
| * @dev Allows accounts to be blacklisted by a "blacklister" role | |
| */ | |
| contract Blacklistable is Ownable { |
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.6.0; | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.2.0/contracts/token/ERC721/ERC721.sol"; | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.2.0/contracts/token/ERC721/ERC721Burnable.sol"; | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.2.0/contracts/token/ERC721/ERC721Pausable.sol"; | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.2.0/contracts/token/ERC721/ERC721Holder.sol"; | |
| import './Ownable.sol'; |
| pragma solidity ^0.4.21; | |
| import "./api_covoir.sol"; | |
| contract BettingContract is usingCovoirOracle { | |
| bytes public response; | |
| uint256 public id_response; | |
| uint256 public minimumBet; |
| pragma solidity ^0.4.21; | |
| import "./api_covoir.sol"; | |
| contract SampleClient is usingCovoirOracle { | |
| bytes public response; | |
| uint256 public id_response; | |
| event resultEvent(uint256 id, bytes responseIpfs); |
| def dot_product(x, kernel): | |
| """ | |
| Wrapper for dot product operation, in order to be compatible with both | |
| Theano and Tensorflow | |
| Args: | |
| x (): input | |
| kernel (): weights | |
| Returns: | |
| """ |
| #!/bin/sh | |
| PATHDIR='/Users/beto/Downloads/test' | |
| cd $PATHDIR | |
| ftpSvr () { | |
| HOST='67.222.130.110' | |
| USER='XXXX' | |
| PASSWD='XXXX' | |
| ftp -n $HOST <<END_SCRIPT |