Skip to content

Instantly share code, notes, and snippets.

🎳
Having Fun

Jixun Wu JixunMoe

🎳
Having Fun
Block or report user

Report or block JixunMoe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@JixunMoe
JixunMoe / IntervalLoop.js
Last active Nov 26, 2018
Interval Loop (Loop array with delay & callback)
View IntervalLoop.js
var IntervalLoop = function (arrData, looper, delay) {
if (!(this instanceof IntervalLoop))
return new IntervalLoop (arrData, looper, delay);
/**
* Status
* @type Number
* 0: 循环未开始
* 1: 正在循环
* 2: 循环结束
View betterInterval.js
// Better interval
var betterInterval = function (foo, timeout) {
for (var i=2, extraArgs=[], that=this; i<arguments.length; i++)
extraArgs.push (arguments[i]);
var fooNext = function () {
var args = extraArgs.slice();
args.splice(0, 0, fooNext);
for (var i=0; i<arguments.length; i++)
args.push (arguments[i]);
@JixunMoe
JixunMoe / README.md
Last active Jun 21, 2018
渣浪后黑脚本
View README.md
You can’t perform that action at this time.