Skip to content

Instantly share code, notes, and snippets.

Harry Liu luckyyang

Block or report user

Report or block luckyyang

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View affirmation-request.log
yarn run v1.17.3
$ ./scripts/start-worker.sh watcher affirmation-request-watcher
[1568900257870] INFO (watcher-native-erc-affirmation-request): Connected to redis
[1568900257888] DEBUG (watcher-native-erc-affirmation-request): Last Processed block obtained
fromRedis: "13596650"
fromConfig: "13588055"
[1568900257909] INFO (watcher-native-erc-affirmation-request): Connected to amqp Broker
[1568900258891] DEBUG (watcher-native-erc-affirmation-request): Getting block number
module: "web3"
[1568900258894] DEBUG (watcher-native-erc-affirmation-request): Getting required block confirmations
View gist:c219ba93d3af10d8eca86841281aa815
Verifying my Blockstack ID is secured with the address 126aVHrFrwL6Y9jFBnTugnYt9Fb82yG5be https://explorer.blockstack.org/address/126aVHrFrwL6Y9jFBnTugnYt9Fb82yG5be
@luckyyang
luckyyang / donation.sol
Last active Dec 6, 2018
donation example of solidity
View donation.sol
pragma solidity ^0.4.25;
contract Donation {
uint fundLimit = 1 ether;
address owner;
event fundMoved(address _to, uint _amount);
modifier onlyowner { if (msg.sender == owner) _; }
address[] _giver;
uint[] _values;
@luckyyang
luckyyang / fomo.sol
Created Nov 6, 2018 — forked from hayeah/fomo.sol
fomo3d contract
View fomo.sol
pragma solidity ^0.4.24;
/**
* @title -FoMo-3D v0.7.1
* ┌┬┐┌─┐┌─┐┌┬┐ ╦╦ ╦╔═╗╔╦╗ ┌─┐┬─┐┌─┐┌─┐┌─┐┌┐┌┌┬┐┌─┐
* │ ├┤ ├─┤│││ ║║ ║╚═╗ ║ ├─┘├┬┘├┤ └─┐├┤ │││ │ └─┐
* ┴ └─┘┴ ┴┴ ┴ ╚╝╚═╝╚═╝ ╩ ┴ ┴└─└─┘└─┘└─┘┘└┘ ┴ └─┘
* _____ _____
* (, / /) /) /) (, / /) /)
* ┌─┐ / _ (/_ // // / _ // _ __ _(/
* ├─┤ ___/___(/_/(__(_/_(/_(/_ ___/__/_)_(/_(_(_/ (_(_(_
@luckyyang
luckyyang / fomo3d.sol
Created Jul 26, 2018
Fomo3D smart contract
View fomo3d.sol
pragma solidity ^0.4.24;
/**
* @title -FoMo-3D v0.7.1
* ┌┬┐┌─┐┌─┐┌┬┐ ╦╦ ╦╔═╗╔╦╗ ┌─┐┬─┐┌─┐┌─┐┌─┐┌┐┌┌┬┐┌─┐
* │ ├┤ ├─┤│││ ║║ ║╚═╗ ║ ├─┘├┬┘├┤ └─┐├┤ │││ │ └─┐
* ┴ └─┘┴ ┴┴ ┴ ╚╝╚═╝╚═╝ ╩ ┴ ┴└─└─┘└─┘└─┘┘└┘ ┴ └─┘
* _____ _____
* (, / /) /) /) (, / /) /)
* ┌─┐ / _ (/_ // // / _ // _ __ _(/
* ├─┤ ___/___(/_/(__(_/_(/_(/_ ___/__/_)_(/_(_(_/ (_(_(_
@luckyyang
luckyyang / Lisk blockchain database structure.md
Created Jan 21, 2018 — forked from andreafspeziale/Lisk blockchain database structure.md
Lisk blockchain platform PostgreSQL database structure description
View Lisk blockchain database structure.md

Lisk blockchain database structure

Lisk is a blockchain application platform and crypto-currency, which offers an all round solution for Node.js and JavaScript developers to deploy their own blockchain applications.

You can find a very nice documentation about Lisk here but some useful iformation like the complete database structure are missing.

This gist aims at telling you more about where the Lisk blockchain is stored. The following notes are taken from the study of Lisk testnet 0.9.3a version.

Database

@luckyyang
luckyyang / meteor_react_learning_notes.md
Last active Jul 27, 2016
meteor react 学习笔记
View meteor_react_learning_notes.md

命令:

新建 & 运行项目:

meteor create project_name

cd project_name

meteor npm install # npm install

meteor
@luckyyang
luckyyang / gist:42a91d92953c85753c98
Created Nov 22, 2015 — forked from xigua/gist:e8adc26a3b943570a18d
Mongodb 3.0 Replica Set Setup with Docker Notes
View gist:42a91d92953c85753c98
Reference: https://medium.com/@gargar454/deploy-a-mongodb-cluster-in-steps-9-using-docker-49205e231319#.ff9lbtdl9
this post talks about 3 Nodes,Mongodb 2.6.5. In order to use mongo 3.0, a few changes has been made. Assume using root
1. First we need 2 servers with docker installed
1.1 recommend use Ubuntu 14.04 on aliyun, then install daocloud for docker installation and monitoring
curl -sSL https://get.daocloud.io/docker | sh
1.2 install daocloud monitoring program
@luckyyang
luckyyang / accounts_ui_config.md
Created Apr 30, 2015
accounts-ui包注册表单项的控制
View accounts_ui_config.md

文档:http://docs.meteor.com/#/full/accounts_ui_config

Which fields to display in the user creation form. One of 'USERNAME_AND_EMAIL', 'USERNAME_AND_OPTIONAL_EMAIL', 'USERNAME_ONLY', or 'EMAIL_ONLY' (default).

代码: Accounts.ui.config({ requestPermissions: { facebook: ['user_likes'], github: ['user', 'repo'] },

@luckyyang
luckyyang / weixin_intro.md
Created Apr 30, 2015
微信公众号和订阅号区别
View weixin_intro.md
You can’t perform that action at this time.