Skip to content

Instantly share code, notes, and snippets.

@maxpy
maxpy / bisync.sh
Last active May 19, 2025 06:02
fswatch+rsync mac同步本地文件到服务器
#!/bin/bash
# 用例 ./bisync.sh ./bricks
# ./bisync.sh bricks c2:/home/ubuntu
# dest : 远端路径
echo "number of args: $# ;;;;[$1] [$2]"
# dest=ubuntu@asia2.bricksinfo.com:/home/ubuntu/workspace_panyong/
dest=c2:/home/ubuntu
@maxpy
maxpy / ArtToken.sol
Created October 30, 2018 09:38
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.25+commit.59dbf8f1.js&optimize=true&gist=
pragma solidity ^0.4.24;
import "./ERC20.sol";
contract ArtToken is ERC20 {
string public name = "ArtToken";
string public symbol = "CM01";
// uint public decimals = 18;
uint public INITIAL_SUPPLY = 10000000 ;
constructor() public {