-
order 查询订单状态、关闭订单
-
native/micro/h5 扫码支付、付款码支付、H5支付等等接口
-
banks 银行卡对应表中文
This file contains hidden or 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
local queue = require "lqueue" | |
local q = queue:new() | |
-- local min, max = 1, 1 | |
local min, max = 1, 10 | |
for i = min, max do | |
q:push(string.char(math.random(97, 97 + 26))) | |
end |
This file contains hidden or 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
--[[ | |
LICENSE: BSD | |
Author: CandyMi[https://github.com/candymi] | |
]] | |
local type = type | |
local assert = assert | |
local httpc = require "httpc" |
This file contains hidden or 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
from selenium import webdriver | |
from selenium.webdriver import ChromeOptions | |
from selenium.webdriver.common.action_chains import ActionChains | |
username = "你的账号" | |
password = "你的密码" | |
from time import sleep |
This file contains hidden or 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
-- AES 测试用例 | |
local crypt = require "crypt" | |
local hexencode = crypt.hexencode | |
local b64enc = crypt.base64encode | |
-- ECB | |
local aes_128_ecb_encrypt = crypt.aes_128_ecb_encrypt | |
local aes_192_ecb_encrypt = crypt.aes_192_ecb_encrypt | |
local aes_256_ecb_encrypt = crypt.aes_256_ecb_encrypt |
This file contains hidden or 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
-- 汉字表 | |
local to_pingyin ={ | |
["飕"] = { "sou" }, | |
["诀"] = { "jue" }, | |
["悔"] = { "hui" }, | |
["壕"] = { "hao" }, | |
["裕"] = { "yu" }, | |
["磕"] = { "ke" }, | |
["傩"] = { "nuo" }, | |
["蟪"] = { "hui" }, |
This file contains hidden or 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
local cf = require "cf" | |
local cf_wait = cf.wait | |
local cf_wakeup = cf.wakeup | |
local co = cf.self() | |
local co1 = cf.fork(function() | |
while 1 do | |
cf_wait() |
This file contains hidden or 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
require "utils" | |
local function merge(t1, t2, comp) | |
local tab = {} | |
local index, i1, i2 = 1, 1, 1 | |
local len1, len2 = #t1, #t2 | |
while i1 <= len1 and i2 <= len2 do | |
local a, b = t1[i1], t2[i2] | |
if comp(a, b) then | |
tab[index] = a |
OlderNewer