top-1m.csv can be get it from alexa's website:
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
/*! 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, |
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
// 简易 Ajax 函数 | |
// MIT License, Jixun.Moe | |
(function (global) { | |
var _export = { | |
ajax: $ajax, | |
post: $post, | |
get: $get | |
}; |
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
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 |
合并 NTR CFW 在 3DS 截图产生的 top_xxxx.bmp
与 bot_xxxx.bmp
至一个文件。
详细阅读:Jixun.Moe
控制台/终端 执行 convert -version
能输出 ImageMagick 的信息。
如果没有,请:
- Windows 用户请执行
SET "PATH=DIR_TO_IMAGEMAGICK;%PATH%"
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
; ROM 位置: 012B78 (04:AB68) | |
; 原始函数: LoadNextChar | |
; LoadNextChar (01180D / 04:97FD): JMP AB68 | |
.org $AB68 | |
; LoadNextChar | |
; 04,AB68 | |
; byte[0043] 等待帧数, 如果不是 0 则跳出 |
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 Import -------------------------- | |
.alias _fn_PrologueDialog $AB70 | |
.alias _fn_ContraIntro $AB73 | |
.alias _fn_LevelClearDialog $AB76 | |
.alias _fn_ScrectEnding $AB79 | |
; 原本就在魂斗罗 Rom 内的函数地址 | |
.alias _fn_PlaySound $F9BC |
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
// 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]); |
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
/** | |
* 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; |
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
/** @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 }) { |