- 姓名: 许波
- 性别: 男
- 出生: 1992/03/02
- 邮箱: llkj13579@126.com
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 getHumpName(name = '') { | |
// let start = true; | |
// let results = ''; | |
// for(let i = 0; i < name.length; i++) { | |
// if (start) { | |
// if(name[i] === '_') { | |
// results += name[i]; | |
// continue; | |
// } |
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 { Redis } from 'ioredis'; | |
import RedisService = require('ioredis'); | |
import Debug from 'debug'; | |
const debug = Debug('rcache'); | |
interface UpdateFunc<Data extends { [key: string]: any }> { | |
(options?: Partial<Data>): Promise<Data|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
/** | |
* https://blog.csdn.net/u012369749/article/details/73784897 | |
*/ | |
const Base64 = { | |
// private property | |
_keyStr: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", | |
// public method for encoding | |
encode(input) { | |
let output = ""; |
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
open -a "/Applications/Google Chrome.app" 'http://www.zhihu.com' |
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
"use strict"; | |
const wmdl = require("wmdl"); | |
const async = require("async"); | |
let url = "http://www.xiumm.org/photos/XiuRen-16992.html"; | |
// http://www.xiumm.org/photos/UGirls-17391-2.html | |
const request = require("request"); |
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
-- provide by Zhang Chao | |
local _M = {} | |
function _M.get_redis_obj(block) | |
local red | |
local callback = function(host, port) | |
local ok, err = red:connect(host, port) |