Skip to content

Instantly share code, notes, and snippets.

View Narazaka's full-sized avatar
🐫
Just Another **** Hacker,

Narazaka Narazaka

🐫
Just Another **** Hacker,
View GitHub Profile
@Narazaka
Narazaka / shell_api.d.ts
Created July 9, 2016 17:41
Ukagaka Shell API v2?
export class Directory {
}
export class Descript {
}
export class ShellData {
static async buildFromDirectory(directory: Directory): Promise<ShellData>;
constructor(surfaceResources, surfaceDefinitions);
unload(): void;
@Narazaka
Narazaka / dic.cs
Last active September 5, 2015 06:03
public enum SkillEffectType {
ChangeCharacterHP,
ChangeAllEnemyHP,
//...
}
public partial class SkillEffect {
private static Dictionary<SkillEffectType, Type> skill_types = new Dictionary<SkillEffectType, Type> {
@Narazaka
Narazaka / allfat32.pl
Created June 21, 2015 14:18
FAT32ReaderでFS上の全ファイルを吸い出す
#!/usr/bin/perl
use utf8;
use strict;
use warnings;
use 5.006; # not checked
binmode STDOUT, ':encoding(cp932)';
binmode STDERR, ':encoding(cp932)';
use File::Spec::Functions qw/catfile/;
use Time::Piece;
@Narazaka
Narazaka / gist:6cffe0b25431ce5340fd
Created November 28, 2014 22:06
event listener
on: (event, callback) ->
unless event? and callback? then throw Error 'on() event and callback required'
unless @listener?
@listener = {}
unless @listener[event]?
@listener[event] = []
if -1 == @listener[event].indexOf(callback)
@listener[event].push(callback)
off: (event, callback) ->
if event? and callback?
@Narazaka
Narazaka / AYA5Worker.coffee
Created November 28, 2014 02:27
AYA5Worker.coffee
self.importScripts("encoding.min.js")
self.importScripts("aya5.js")
self.importScripts("nativeshiori.js")
shiori = new AYA5()
shiori.Module.logReadFiles = true
shiorihandler = null
self.onmessage = ({data: {event, data}}) ->
switch event