Skip to content

Instantly share code, notes, and snippets.

set -g default-terminal "screen-256color"
set-option -g default-shell $SHELL
# Set the Bind Key
#unbind C-b
#set -g prefix `
#bind-key ` send-prefix
#bind-key L last-window
# force a reload of the config file
maxscale]
threads=4
[Galera Monitor]
type=monitor
module=galeramon
servers=svr_10095,svr_10096,svr_10097
user=maxadmin
passwd=jkdskjsdfkjlfdskjdsfkjsdjkf
monitor_interval=10000
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// Safe maths
// ----------------------------------------------------------------------------
library SafeMath {
function add(uint a, uint b) internal pure returns (uint c) {
c = a + b;
require(c >= a);
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// Safe maths
// ----------------------------------------------------------------------------
library SafeMath {
function add(uint a, uint b) internal pure returns (uint c) {
c = a + b;
require(c >= a);
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// Safe maths
// ----------------------------------------------------------------------------
library SafeMath {
function add(uint a, uint b) internal pure returns (uint c) {
c = a + b;
require(c >= a);
pragma solidity ^0.4.18;
library SafeMath {
function add(uint a, uint b) internal pure returns (uint c) {
c = a + b;
require(c >= a);
}
function sub(uint a, uint b) internal pure returns (uint c) {
require(b <= a);
c = a - b;
pragma solidity ^0.4.18;
library SafeMath {
function add(uint a, uint b) internal pure returns (uint c) {
c = a + b;
require(c >= a);
}
function sub(uint a, uint b) internal pure returns (uint c) {
require(b <= a);
c = a - b;
pragma solidity ^0.4.16;
// sol ควรจะสั้นๆ ตรงไปตรงมา อย่าเยอะ
// Dome C. <[email protected]>
contract SbuyToken {
string public name = "SbuyMining"; // token name
string public symbol = "SBUY"; // token symbol
uint256 public decimals = 0; // token digit
mapping (address => uint256) public balanceOf;
@dome
dome / opcoin
Last active August 21, 2018 14:44
pragma solidity ^0.4.16;
contract OpCoin {
string public name = "OPCOIN"; // token name
string public symbol = "OPC"; // token symbol
uint256 public decimals = 0; // token digit
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) public allowance;
@dome
dome / fake_token.json
Last active September 28, 2019 02:49
{"data":{"_id":"5d74a412a520a30011ce6391","address":"0x24D40d705aC5B54080678d83E628803cfFCe89c2","factoryAddress":"0xb895638fb3870AD5832402a5BcAa64A044687db0","blockNumber":669620,"tokenType":"basic","networkType":"fuse","name":"X SEGA ","symbol":"XSEGA","totalSupply":"0","createdAt":"2019-09-08T06:47:46.170Z","updatedAt":"2019-09-08T06:48:45.333Z","tokenURI":"ipfs://Qmc1WwfAweQgjjS1YSwrAeaHcFgiSNiqEoZFZsXeFr54Wo","owner":"0xAde4785c5B5699E25B1E345d708be6295CDce938"}}