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
| const defaultManagerUrl = 'https://openapi.iqiyi.com'; | |
| const defaultUploadUrl = 'https://upload.iqiyi.com'; | |
| class QiyiSdk { | |
| constructor(options = {}) { | |
| const { | |
| appKey, | |
| appSecret, | |
| managerUrl, | |
| uploadUrl, |
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
| const defaultManagerUrl = 'https://openapi.iqiyi.com'; | |
| const defaultUploadUrl = 'https://upload.iqiyi.com'; | |
| class QiyiSdk { | |
| constructor(options = {}) { | |
| const { | |
| appKey, | |
| appSecret, | |
| managerUrl, | |
| uploadUrl, |
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
| var reg1 = getRegExp('\[[\'\"]', 'g'); | |
| var reg2 = getRegExp('[\'\"]\]', 'g'); | |
| function deepGet(object, path, defaultValue) { | |
| var pathAry = path.replace(reg1, '.').replace(reg2, '').split('.'); | |
| if (pathAry[0] === '') { | |
| pathAry.shift(); | |
| } | |
| return pathAry.reduce(function (o, k) { | |
| return o && o[k]; |
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
| /** | |
| * @file 在内存中打包 zip 文件的类,需要设置 `/var/run/${namespace}` 的权限为777 | |
| * @author [email protected] | |
| */ | |
| import * as fs from 'fs'; | |
| import * as path from 'path'; | |
| import * as mkdirp from 'mkdirp'; | |
| import * as archiver from 'archiver'; | |
| import * as copydir from 'copy-dir'; |
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
| const id = '4199292455301996' | |
| let page = 0 | |
| async function getUidList() { | |
| const result = [] | |
| let isEnd = false | |
| while (!isEnd) { | |
| const response = await fetch(`/api/comments/show?id=${id}&page=${page}`).then(res => res.json()) | |
| if (response.data) { | |
| const data = response.data.data |
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
| [][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((![]+[])[+!+[]]+([]+[])[(![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+! |
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
| function timeDec(t1, t2) { | |
| const DAY = 24 * 60 * 60 * 1000 | |
| const SPACING = DAY * 7 / 24 | |
| const t = d => ((r = new Date(d), (22<= r < 6) ? new Date(r.setHours(22)) : r >= 0 ? new Date(r - DAY) : new Date(r)).getTime()) | |
| const dec = t(t1) - t(t2) | |
| return Math.abs(dec- ((dec / DAY) | 0) * SPACING) | |
| } |
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
| git pull origin pull/28/head | |
| # or | |
| git fetch origin pull/28/head:28 | |
| git checkout 28 |
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
| git filter-branch --env-filter ' | |
| OLD_EMAIL="OLD_EMAIL" | |
| CORRECT_NAME="Dafrok" | |
| CORRECT_EMAIL="[email protected]" | |
| if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ] | |
| then | |
| export GIT_COMMITTER_NAME="$CORRECT_NAME" | |
| export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL" | |
| fi | |
| if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ] |
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
| const http = require('http') | |
| const fs = require('fs') | |
| const path = require('path') | |
| const STEP = 50 | |
| const MAX = 65536 | |
| const file = {} | |
| const getKana = range => new Promise((resolve, reject) => { | |
| let text = '' |
NewerOlder