Skip to content

Instantly share code, notes, and snippets.

Avatar
🎳
Having Fun

Jixun Wu jixunmoe

🎳
Having Fun
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 keybase.md

Keybase proof

I hereby claim:

  • I am jixunmoe on github.
  • I am jixun (https://keybase.io/jixun) on keybase.
  • I have a public key ASBn4IEmgu0FEY3NnVmhCA6EE1L0ZsePJ6j7epVA4iLxlgo

To claim this, I am signing this object:

@jixunmoe
jixunmoe / README.md
Last active Jun 21, 2018
渣浪后黑脚本
View README.md
@jixunmoe
jixunmoe / comments.jsx
Last active May 7, 2018
es5 implementation of jsx without state management.
View comments.jsx
/** @jsx h */
// See https://c.jixun.moe/ui for live-demo
(function(root) {
function UnsafeHtml({ html }) {
var div = (<i />);
div.innerHTML = html;
return div.childNodes;
}
function ExternalLink({ className, href, children }) {
@jixunmoe
jixunmoe / bind.gen.without.ctx.js
Last active Jul 6, 2017
[ES6] Bind generator without context.
View bind.gen.without.ctx.js
/**
* Bind generator with context preserved.
* @param {Generator} fn The generator
* @return {Generator} Generator with arguments bind.
*/
var _bind = function (fn) {
var args = [].slice.call(arguments, 1);
return function * () {
var ir = fn.apply (this, args.concat.apply(args, arguments));
var n;
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 / Contra.inc.s
Last active Aug 8, 2016
Contra Translation Project Code.
View Contra.inc.s
; 魂斗罗部分地址偏移 / 常量
; Function Import --------------------------
.alias _fn_PrologueDialog $AB70
.alias _fn_ContraIntro $AB73
.alias _fn_LevelClearDialog $AB76
.alias _fn_ScrectEnding $AB79
; 原本就在魂斗罗 Rom 内的函数地址
.alias _fn_PlaySound $F9BC
@jixunmoe
jixunmoe / 04,AB68.s
Last active Aug 8, 2016
Contra Chinese Translation Assembly Code.
View 04,AB68.s
; ROM 位置: 012B78 (04:AB68)
; 原始函数: LoadNextChar
; LoadNextChar (01180D / 04:97FD): JMP AB68
.org $AB68
; LoadNextChar
; 04,AB68
; byte[0043] 等待帧数, 如果不是 0 则跳出
@jixunmoe
jixunmoe / README.MD
Last active Jul 22, 2016
Merge ntr-cfw screenshots
View README.MD

NTR CFW 截图合并脚本

合并 NTR CFW 在 3DS 截图产生的 top_xxxx.bmpbot_xxxx.bmp 至一个文件。

详细阅读:Jixun.Moe

使用前提

控制台/终端 执行 convert -version 能输出 ImageMagick 的信息。

如果没有,请:

  • Windows 用户请执行 SET "PATH=DIR_TO_IMAGEMAGICK;%PATH%"
@jixunmoe
jixunmoe / README.md
Created Oct 5, 2015
Check https on sites
View README.md
You can’t perform that action at this time.