Skip to content

Instantly share code, notes, and snippets.

View lingqingmeng's full-sized avatar
😀
Hi

Ling Qing Meng lingqingmeng

😀
Hi
View GitHub Profile
slate.configAll({
'defaultToCurrentScreen': true,
'checkDefaultsOnLoad': true
});
var layout = {
maximize: S.op('move', {
'y' : 'screenOriginY',
'x' : 'screenOriginX',
'width' : 'screenSizeX',
@lingqingmeng
lingqingmeng / IndexingExample.java
Created July 10, 2017 21:09 — forked from mocobeta/IndexingExample.java
Hello Lucene! (6.0.0)
package example;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.*;
import org.apache.lucene.index.*;
import org.apache.lucene.queryparser.classic.ParseException;
import org.apache.lucene.queryparser.classic.QueryParser;
import org.apache.lucene.search.*;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.FSDirectory;
@lingqingmeng
lingqingmeng / nda_pa.md
Created November 22, 2017 16:54
NDA PA

CONFIDENTIALITY AGREEMENT

This Confidentiality Agreement (this "Agreement") is made and entered into as of 11/22/2017 by and between O'Hara Associates ("OHA") and Frank Ni residing at Palo Alto, CA.. [OHA] and the Company or the Individual are considering a potential relationship or transaction whereby the parties will be exchanging information in order to evaluate such relationship or transaction. As a condition to the exchange of such confidential information, the parties hereby agree as follows:

  1. For purposes of this Agreement, "Confidential Information" shall mean information or material proprietary to the party disclosing such information ("Disclosing Party") or designated as Confidential Information by the Disclosing Party which the party receiving such information ("Receiving Party") may obtain knowledge of or access to as a result of the disclosure pursuant to this Agreement. This Confidential Information includes, but is not limited to, confidential history and background, financial informati
@lingqingmeng
lingqingmeng / ProfileFormActions.js
Created December 25, 2017 20:55
Profile Form Tutorial
import AuthenticationContract from '../../../../build/contracts/Authentication.json'
import SimpleStorageContract from '../../../../build/contracts/SimpleStorage.json'
import store from '../../../store'
const contract = require('truffle-contract')
export const USER_UPDATED = 'USER_UPDATED'
function userUpdated(user) {
return {
type: USER_UPDATED,
@lingqingmeng
lingqingmeng / three_ways_make_account.md
Created January 5, 2018 22:20
React DApp Tutorial Series - Part 4 of 15

Three most common ways to create an account

  1. My Ether Wallet
  2. Using Web3 and Node REPL
  3. Parity GUI

1. Quickest and arguably least secure

go https://myetherwallet.com

@lingqingmeng
lingqingmeng / wtc_qa.md
Created February 23, 2018 19:34
Walton Chain Technical QnA

Q: How does WaltonChain plan to prevent the RFID chips from genuine products being removed and placed into counterfeit goods? While I understand this will stop the production of counterfeit goods from counterfeit factories, I do not understand how this will prevent chips from genuine products being placed onto the exact same counterfeit item. A: In the prevention of RFID IC (RFID IC = Radio Frequency Identification Integrated Chips, i.e., WTC's bread and butter) removal, Waltonchain currently has a corresponding solution for different industry applications.

In the clothing industry, we put RFID tags with washing marks on a single product brand. When RFID labels combined with product transfer among production, logistics, sales and other aspects of circulation, forgers cannot get washing mark removed and move the RFID tag to the other fake and shoddy goods. For the food, retail and other related industries, Waltonchain developed a fragile, anti transfer RFID tag, which is attached to the RFID tag (I think they

@lingqingmeng
lingqingmeng / escrow.sol
Created February 27, 2018 17:48
Escrow Solidity
pragma solidity ^0.4.18;
contract Escrow {
uint balance;
address public buyer;
address public seller;
address private escrow;
uint private start;
bool buyerOk;
bool sellerOk;
@lingqingmeng
lingqingmeng / SMT.sol
Created April 25, 2018 17:47
SMT crowdsale hack
// Abstract contract for the full ERC 20 Token standard
// https://github.com/ethereum/EIPs/issues/20
pragma solidity ^0.4.15;
contract Token {
/* This is a slight change to the ERC20 base standard.*/
/// total amount of tokens
uint256 public totalSupply;
/// @param _owner The address from which the balance will be retrieved
@lingqingmeng
lingqingmeng / aboutme.md
Created April 27, 2018 20:10
Quick Bio
  • Ling Qing Meng is a software engineer that develops blockchain applications and infrastructure. He's helped companies build architecture that creates new markets possible only now through permissionless end to end exchanges of value.
  • Before blockchain he's worked in Ad-Tech at Branch Metrics in Palo Alto where he led a team that built a first to market solution that can deeplink AMP-html articles to specific mobile app views. He also has industry specific experience contracting in the supply chain space and performing source code audits in IP litigation.
  • Within the ICO ecosystem, Ling is also involved as a investor, security advisor, and writer for whitepapers. Ling is motivated by blockchain's ability to finally allow a direct connection between the creation of value and the engineer who facilitates it, and wants to empower anyone who ventures into this new world.
  • As a Product Engineer at Branch, Ling was the first to market implementation of dynamic AMP Html template, giving customers both unrivaled