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 / 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;
@JixunMoe
JixunMoe / autokun.js
Last active Aug 29, 2015
llpractice.autokun.js
View autokun.js
(function (window, document) {
if (!window.ga) window.ga = function () {};
function getContent (url, cbSuccess, cbFail) {
var req = new XMLHttpRequest();
req.open ('GET', url);
req.onload = cbSuccess && cbSuccess.bind(req);
req.onerror = cbFail && cbFail .bind(req);
req.send ();
};
@JixunMoe
JixunMoe / FakeLib.cpp
Last active Sep 1, 2015
NT88 Fake Lib.
View FakeLib.cpp
// FakeLib.cpp : Defines the exported functions for the DLL application.
//
 
#include <windows.h>
#include "FakeLib.h"
 
int __stdcall _NT3DESCBCDecrypt(char* vi, char* pDataBuffer, int length)
{
    return 0;
}
@JixunMoe
JixunMoe / NT88.asm
Created Sep 1, 2015
NT88 library in assembly.
View NT88.asm
format PE GUI 4.0 DLL
entry DllMain
include 'win32ax.inc'
 
section '.text' code readable executable
 
; 入口函数
proc DllMain hinstDLL,fdwReason,lpvReserved
  mov al, 1
  ret
@JixunMoe
JixunMoe / typecho.gist.js
Last active Sep 2, 2015
Gist Support for Typecho (Modern browser only)
View typecho.gist.js
/*! MIT License: (C)opyright Jixun<http://jixun.org/> */
// Usage:
// gist:JixunMoe/cd168a63b7c5a1cc3d93
(function (window, document) {
addEventListener('DOMContentLoaded', main, false);
function createGistLink (gist) {
return create('a', {
href: 'https://gist.github.com/' + gist,
@JixunMoe
JixunMoe / Simple Ajax.js
Last active Sep 4, 2015
簡單 Ajax 函式庫,不需要 jQuery
View Simple Ajax.js
// 简易 Ajax 函数
// MIT License, Jixun.Moe
(function (global) {
var _export = {
ajax: $ajax,
post: $post,
get: $get
};
@JixunMoe
JixunMoe / 1A2B_bot.py
Last active Sep 28, 2015
An IRC bot that does nothing but a simple 1A2B game.
View 1A2B_bot.py
import socket
import random
import sys
import re
server = "irc.freenode.net" # Server
channel = "#cs-york-dev2" # Channel
botnick = "game_1A2B" # Your bots nick
# Convert string to bytes
@JixunMoe
JixunMoe / README.md
Created Oct 5, 2015
Check https on sites
View README.md
@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 / 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 则跳出
You can’t perform that action at this time.