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
| // g++ graph.cpp -lGL -lGLEW -lglfw | |
| #include <GL/glew.h> | |
| #include <GLFW/glfw3.h> | |
| #include <glm/ext.hpp> | |
| #include <vector> | |
| const std::size_t width = 800; | |
| const std::size_t height = 600; | |
| const auto vss = "#version 330\n" |
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.20; | |
| contract Store { | |
| address private owner; | |
| modifier onlyOwner() { | |
| require(msg.sender == owner); | |
| _; | |
| } |
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
| { | |
| "ops" : [ { | |
| "code" : "PUSH1", | |
| "deep" : 0, | |
| "pc" : 0, | |
| "gas" : 1000000, | |
| "actions" : { | |
| "stack" : [ ], | |
| "memory" : [ ], | |
| "storage" : [ ] |
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
| const TheAbyssDAICO = artifacts.require("TheAbyssDAICO"); | |
| const AbyssToken = artifacts.require("AbyssToken"); | |
| const PollManagedFund = artifacts.require("PollManagedFund"); | |
| const ReservationFund = artifacts.require("ReservationFund"); | |
| module.exports = (deployer, _, accounts) => { | |
| let abyssToken; | |
| let pollManagedFund; | |
| let reservationFund; | |
| let theAbyssDAICO; |
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
| web3.utils = web3._extend.utils; | |
| const BigNumber = require("bignumber.js"); | |
| const TheAbyssDAICO = artifacts.require("TheAbyssDAICO"); | |
| const AbyssToken = artifacts.require("AbyssToken"); | |
| const incTime = seconds => new Promise(next => | |
| web3.currentProvider.sendAsync({jsonrpc: "2.0", method: "evm_increaseTime", params: [seconds], id: 0}, () => | |
| web3.currentProvider.sendAsync({jsonrpc: "2.0", method: "evm_mine", id: 0}, next) | |
| ) | |
| ); | |
| const getTime = () => new Promise(next => web3.eth.getBlock("latest", (err, block) => next(block.timestamp))); |
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
| let chai = require("chai"); | |
| let chaiAsPromised = require("chai-as-promised"); | |
| chai.use(chaiAsPromised); | |
| chai.should(); | |
| const LastWillNotify = artifacts.require("./LastWillNotify.sol"); | |
| const incTime = seconds => new Promise(next => | |
| web3.currentProvider.sendAsync({jsonrpc: "2.0", method: "evm_increaseTime", params: [seconds], id: 0}, () => | |
| web3.currentProvider.sendAsync({jsonrpc: "2.0", method: "evm_mine", id: 0}, next) | |
| ) |
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
| let FaceterToken = artifacts.require("./FaceterToken.sol"); | |
| let FaceterTokenLock = artifacts.require("./FaceterTokenLockV2.sol"); | |
| let toNumber = (value, decimals) => value.slice(0, value.length-decimals) + "." + value.slice(value.length-decimals); | |
| let getTime = () => new Promise(next => web3.eth.getBlock("latest", (err, block) => next(block.timestamp))); | |
| let incTime = seconds => new Promise(next => | |
| web3.currentProvider.sendAsync({jsonrpc: "2.0", method: "evm_increaseTime", params: [seconds], id: 0}, () => | |
| web3.currentProvider.sendAsync({jsonrpc: "2.0", method: "evm_mine", id: 0}, next) | |
| ) | |
| ); |
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
| let FaceterToken = artifacts.require("./FaceterToken.sol"); | |
| let FaceterTokenLockV2 = artifacts.require("./FaceterTokenLockV2.sol"); | |
| let toNumber = (value, decimals) => value.slice(0, value.length-decimals) + "." + value.slice(value.length-decimals); | |
| let getTime = () => new Promise(next => web3.eth.getBlock("latest", (err, block) => next(block.timestamp))); | |
| let incTime = seconds => new Promise(next => | |
| web3.currentProvider.sendAsync({jsonrpc: "2.0", method: "evm_increaseTime", params: [seconds], id: 0}, () => | |
| web3.currentProvider.sendAsync({jsonrpc: "2.0", method: "evm_mine", id: 0}, next) | |
| ) | |
| ); |
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.20; | |
| import "zeppelin-solidity/contracts/ownership/Ownable.sol"; | |
| import "zeppelin-solidity/contracts/token/ERC20/BurnableToken.sol"; | |
| import "zeppelin-solidity/contracts/token/ERC20/StandardToken.sol"; | |
| contract FaceterToken is Ownable, BurnableToken, StandardToken { | |
| string public constant name = "Faceter Token"; | |
| string public constant symbol = "FACE"; | |
| uint8 public constant decimals = 18; |
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
| const HDWalletProvider = require("truffle-hdwallet-provider"); | |
| const keys = ["ce2eab51c7c428...", "46c36f1970dcf37ec..."]; | |
| module.exports = { | |
| networks: { | |
| ropsten: { | |
| provider: () => new HDWalletProvider(keys, "https://ropsten.infura.io/uJhP7KE..."), | |
| network_id: 3, | |
| gas: 4500000, | |
| gasPrice: 40000000000 |
NewerOlder