sudo apt install openjdk-8-jdk-headless
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 7a78c009c4b073f90b97d9111b14ffd84662fb5e | |
Author: Gaubee <GaubeeBangeel@Gmail.com> | |
Date: Thu Dec 28 13:12:27 2023 +0800 | |
:bug: [kmp/core] 修复IpcBodySender的from函数延迟赋值metaBody的问题 | |
commit 40d88f0face4e374ffcae31992205fcda12e741f | |
Author: jackie-yellow <hl19081555@gmail.com> | |
Date: Thu Dec 28 09:45:23 2023 +0800 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function bin2hex (bin) | |
{ | |
var i = 0, l = bin.length, chr, hex = ''; | |
for (i; i < l; ++i) | |
{ | |
chr = bin.charCodeAt(i).toString(16) | |
hex += chr.length < 2 ? '0' + chr : chr | |
} | |
return hex | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { MongoClient } from 'mongodb'; | |
const url = 'mongodb://localhost:27017'; | |
const dbName = 'test-set'; | |
import { ConsolePro } from "console-pro"; | |
const console = new ConsolePro(); | |
/**等待n毫秒 */ | |
function sleep(ms: number) { | |
return new Promise(cb => setTimeout(cb, ms)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const color_flag_reg = /((\u001b\[\d+m)+)([\s\S]+?)((\u001b\[\d+m)+)/; | |
s.replace(color_flag_reg, "$3"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* * | |
*类名:AlipayConfig | |
*功能:基础配置类 | |
*详细:设置帐户有关信息及返回路径 | |
*版本:3.2 | |
*日期:2011-03-17 | |
*说明: | |
*以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。 | |
*该代码仅供学习和研究支付宝接口使用,只是提供一个参考。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log = console.log; | |
var c = function(){}; | |
c.create = function( Config ){ | |
var newFn = function(){ | |
//return newFn; | |
}; | |
newFn.prototype = new c; | |
var fn = c.prototype; | |
for (var i in Config) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var log = console.log; | |
//泳衣格式化代码的正则表达式 | |
var reg = { | |
DoubleQuotedString : new RegExp('"(?:\\.|(\\\\\\")|[^\\""\\n])*"','g'),//双引号字符串 | |
SingleQuotedString : new RegExp("'(?:\\.|(\\\\\\')|[^\\''\\n])*'",'g'),//单引号字符串 | |
Chars : new RegExp('([(=[{])','g'),//需用空格隔开的字符(用以逻辑判断代码规则) | |
Empty : new RegExp('[ ]+','g'),//空字符 | |
MultiLineCComments : new RegExp('/\\*[\\s\\S]*?\\*/', 'gm'),//多行注释 | |
SingleLineCComments : new RegExp('//.*$', 'gm'),//单行注释 | |
} |
NewerOlder