Skip to content

Instantly share code, notes, and snippets.

View jin10086's full-sized avatar
🏠
Working from home

gaojin jin10086

🏠
Working from home
View GitHub Profile
pragma solidity ^ 0.5 .1;
contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() internal {
pragma solidity ^0.5.1;
contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
@jin10086
jin10086 / vt.sol
Created May 19, 2019 16:04
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.1+commit.c8a2cb62.js&optimize=false&gist=
pragma solidity ^0.4.25;
contract SccInterface {
function transfer(address _to, uint256 _amount) returns(bool success);
function balanceOf(address owner) external view returns (uint256);
}
contract sunContract{
constructor(){
@jin10086
jin10086 / a.sol
Created May 19, 2019 16:04
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.1+commit.c8a2cb62.js&optimize=false&gist=
/**
* Source Code first verified at https://etherscan.io on Monday, April 15, 2019
(UTC) */
pragma solidity ^0.5.7;
// Voken Airdrop Fund
// Just call this contract (send 0 ETH here),
// and you will receive 100-200 VNET Tokens immediately.
//
@jin10086
jin10086 / huobiieo.js
Created April 22, 2019 12:45
huobi js
webpackJsonp([1],{"+6b+":function(e,t){},"/0BQ":function(e,t){},"1A76":function(e,t){},"4wPh":function(e,t){},"5fCi":function(e,t){},A4Vm:function(e,t){},AiGx:function(e,t){},BDhv:function(e,t,i){var a=i("kM2E");a(a.P+a.R,"Set",{toJSON:i("m9gC")("Set")})},Bss5:function(e,t){},EUKm:function(e,t,i){e.exports=i.p+"static/web/img/exchange-forbiden-image.cf4d146.png"},Ej60:function(e,t){},FLts:function(e,t,i){e.exports=i.p+"static/web/img/step2.0c5a8a5.png"},GPQ0:function(e,t){},"J/eg":function(e,t){},OZWX:function(e,t,i){var a;"undefined"!=typeof self&&self,a=function(){return function(e){function t(a){if(i[a])return i[a].exports;var n=i[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var i={};return t.m=e,t.c=i,t.d=function(e,i,a){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e
with open("english.txt") as f:
x = f.read()
alltxt = x.split()
# 从1开始.
n_word = {i: alltxt[i - 1] for i in range(1, len(alltxt))}
# 换位
key = "20181002"
encrypted = "511B2033232841053022B0FE52ED0F7A165B52C7E75112F656FC4B"
pragma solidity ^0.4.25;
contract SccInterface {
function transfer(address _to, uint256 _amount) returns(bool success);
function balanceOf(address who) public constant returns (uint256);
function getTokens() payable external;
}
contract sunContract{
constructor(){
@jin10086
jin10086 / Afomo3d.sol
Created August 29, 2018 07:14
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.24;
interface PlayerBookInterface {
function getPlayerID(address _addr) external returns (uint256);
function getPlayerName(uint256 _pID) external view returns (bytes32);
function getPlayerLAff(uint256 _pID) external view returns (uint256);
function getPlayerAddr(uint256 _pID) external view returns (address);
function getNameFee() external view returns (uint256);
function registerNameXIDFromDapp(address _addr, bytes32 _name, uint256 _affCode, bool _all) external payable returns(bool, uint256);
function registerNameXaddrFromDapp(address _addr, bytes32 _name, address _affCode, bool _all) external payable returns(bool, uint256);
@jin10086
jin10086 / Afomo3d.sol
Created August 25, 2018 03:46
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
pragma solidity ^0.4.24;
interface PlayerBookInterface {
function getPlayerID(address _addr) external returns (uint256);
function getPlayerName(uint256 _pID) external view returns (bytes32);
function getPlayerLAff(uint256 _pID) external view returns (uint256);
function getPlayerAddr(uint256 _pID) external view returns (address);
function getNameFee() external view returns (uint256);
function registerNameXIDFromDapp(address _addr, bytes32 _name, uint256 _affCode, bool _all) external payable returns(bool, uint256);
function registerNameXaddrFromDapp(address _addr, bytes32 _name, address _affCode, bool _all) external payable returns(bool, uint256);
@jin10086
jin10086 / 1.json
Created August 19, 2018 04:31
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=true&gist=
{
"accounts": {
"account{1}": "0x14723a09acff6d2a60dcdf7aa4aff308fddc160c"
},
"linkReferences": {},
"transactions": [
{
"timestamp": 1534638554258,
"record": {
"value": "0",