Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.24; | |
/** | |
* @title Tavern Interface | |
*/ | |
interface ITavern { | |
function setPowerContract(address _powerContract) external; | |
function influenceByToken(uint256 tokenId) external view returns(uint256); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.21; | |
// File: node_modules/zeppelin-solidity/contracts/token/ERC721/ERC721Basic.sol | |
/** | |
* @title ERC721 Non-Fungible Token Standard basic interface | |
* @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md | |
*/ | |
contract ERC721Basic { | |
event Transfer(address indexed _from, address indexed _to, uint256 _tokenId); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.21; | |
// File: node_modules/zeppelin-solidity/contracts/token/ERC721/ERC721Basic.sol | |
/** | |
* @title ERC721 Non-Fungible Token Standard basic interface | |
* @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md | |
*/ | |
contract ERC721Basic { | |
event Transfer(address indexed _from, address indexed _to, uint256 _tokenId); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function compareDate(start,end){ | |
if(start==null||start.length==0||end==null||end.length==0){ | |
return 0; | |
} | |
var arr=start.split("-"); | |
var starttime=new Date(arr[0],parseInt(arr[1]-1),arr[2]); | |
var starttimes=starttime.getTime(); | |
var arrs=end.split("-"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function compareDate(start,end){ | |
if(start==null||start.length==0||end==null||end.length==0){ | |
return 0; | |
} | |
var arr=start.split("-"); | |
var starttime=new Date(arr[0],parseInt(arr[1]-1),arr[2]); | |
var starttimes=starttime.getTime(); | |
var arrs=end.split("-"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.pi.wx.util; | |
import java.io.BufferedReader; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
import java.text.DateFormat; | |
import java.text.SimpleDateFormat; | |
import java.util.Calendar; |