This file contains hidden or 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
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 |
This file contains hidden or 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
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? |
This file contains hidden or 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
#!/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; |
This file contains hidden or 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
public enum SkillEffectType { | |
ChangeCharacterHP, | |
ChangeAllEnemyHP, | |
//... | |
} | |
public partial class SkillEffect { | |
private static Dictionary<SkillEffectType, Type> skill_types = new Dictionary<SkillEffectType, Type> { |
This file contains hidden or 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
export class Directory { | |
} | |
export class Descript { | |
} | |
export class ShellData { | |
static async buildFromDirectory(directory: Directory): Promise<ShellData>; | |
constructor(surfaceResources, surfaceDefinitions); | |
unload(): void; |
This file contains hidden or 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
//============================================================================= | |
// TMPlugin - マップHPゲージ | |
// バージョン: 1.3.0 | |
// 最終更新日: 2017/02/02 | |
// 配布元 : http://hikimoki.sakura.ne.jp/ | |
//----------------------------------------------------------------------------- | |
// Copyright (c) 2016 tomoaky | |
// Released under the MIT license. | |
// http://opensource.org/licenses/mit-license.php | |
//============================================================================= |
This file contains hidden or 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
//=========================================================================== | |
// be_named.js | |
//=========================================================================== | |
/*: | |
* @plugindesc $gameVariables, $gameSwitchesを名前参照できる$namedVariables, $namedSwitchesを定義します。 | |
* @author Narazaka | |
* | |
* @help | |
* ONにするだけで下記のように使えます。 |
This file contains hidden or 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
//=========================================================================== | |
// find_by_name.js | |
//=========================================================================== | |
/*: | |
* @plugindesc 配列要素の名前検索 | |
* @author Narazaka | |
* | |
* @help | |
* 配列を要素のnameプロパティで探すfindByNameメソッドを追加します。 |
This file contains hidden or 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
// https://qiita.com/shin_hayata/items/41c07923dbf58f13eec4 | |
// http://319ring.net/blog/archives/2906/ | |
// https://medium.com/hello-elasticsearch/elasticsearch-833a0704e44b | |
// http://blog.shibayu36.org/entry/2016/08/31/110000 | |
// https://gist.github.com/karmi/4526141 | |
export const settings = { | |
index: { | |
analysis: { | |
tokenizer: { |
This file contains hidden or 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
const productAnalyticsPreset = { | |
id: 'number', | |
name: 'string', | |
start_at: 'string', | |
end_at: 'string', | |
name2: ['number', 'string'], | |
items: ['array', { | |
id: 'number', | |
name: ['string', 'undefined'], | |
it: { |
OlderNewer