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 () { | |
var flag = true | |
var interval | |
function refresh() { | |
if (flag) { | |
console.log((new Date).toLocaleString()) | |
var iframe = document.createElement('iframe') | |
iframe.src = 'https://shop103422196.taobao.com/category.htm?spm=a1z10.3-c.w4002-6402908702.30.83cQDQ&_ksTS=1465271481288_143&callback=jsonp144&mid=w-6402908702-0&wid=6402908702&path=%2Fcategory.htm&orderType=newOn_desc' | |
document.body.appendChild(iframe) | |
iframe.onload = function () { |
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 defaultManagerUrl = 'https://openapi.iqiyi.com'; | |
const defaultUploadUrl = 'https://upload.iqiyi.com'; | |
class QiyiSdk { | |
constructor(options = {}) { | |
const { | |
appKey, | |
appSecret, | |
managerUrl, | |
uploadUrl, |
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 defaultManagerUrl = 'https://openapi.iqiyi.com'; | |
const defaultUploadUrl = 'https://upload.iqiyi.com'; | |
class QiyiSdk { | |
constructor(options = {}) { | |
const { | |
appKey, | |
appSecret, | |
managerUrl, | |
uploadUrl, |
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 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 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 o.o@mug.dog | |
*/ | |
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 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 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 shuffle(ary) { | |
let times = ary.length | |
while (times) { | |
ary.push(ary.splice(0 | Math.random() * times, 1)[0]) | |
times-- | |
} | |
return ary | |
} |
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 clone (obj) { | |
let ret | |
switch (Object.prototype.toString.call(obj).slice(8, -1)) { | |
case 'Array': | |
return obj.map(val => clone(val)) | |
case 'Set': | |
case 'WeakSet': | |
ret = [] | |
obj.forEach(val => ret.push(clone(val))) | |
return new Set(ret) |
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
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((![]+[])[+!+[]]+([]+[])[(![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+! |
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 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) | |
} |
NewerOlder