Skip to content

Instantly share code, notes, and snippets.

View lixuejiang's full-sized avatar

lixuejiang lixuejiang

View GitHub Profile
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.6.8;
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
@lixuejiang
lixuejiang / 0_reuse_code.js
Created November 26, 2016 14:33
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@lixuejiang
lixuejiang / mind-pact.js
Created October 21, 2016 02:38 — forked from Gaubee/mind-pact.js
Mind Pact.JS——JS的灵魂契约
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(['MP'], factory);
} else {
root.MP = factory(root.b);
}
}(this, function(__global) {
var QuotedString = /"(?:\.|(\\\")|[^\""\n])*"|'(?:\.|(\\\')|[^\''\n])*'/g, //引号字符串
$NULL = null,
$UNDEFINED,