Skip to content

Instantly share code, notes, and snippets.

TypeScript 環境 NEO
$TERM=xterm-256colors
* Windows D:/share
* VSCode debugger ?
* scoop (package manager)
* Msys2 bash, ssh, sshrc, gcc, … on mintty
* CentOS7 on VirtualBox /share
* Vim
@eihigh
eihigh / event-command-schema.md
Last active January 24, 2019 09:57
イベントコマンド定義のスキーマ

イベントコマンドスキーマ

必要な情報

  • name id desc note の各データ
  • ツクール側パラメータ定義 tkool-params
    • パラメータのインデックスと、それに対応する型
  • RDML側パラメータ定義 rdml-params
    • 要素の属性などに用いるパラメータ名と、それに対応する型

ポイント

@eihigh
eihigh / 設計.md
Last active January 27, 2019 23:55

Event Commands

コマンド 特記事項 メモ
文章 dataを特殊パース
選択肢 子要素を特殊パース
数値入力
アイテム選択 アイテムタイプは他でも使い回せる
文章スクロール dataを特殊パース 速度に小数を許容するか検討
コメント
@eihigh
eihigh / sample.xml
Last active January 29, 2019 04:13
<proc name="wait">
<wait/>
<get item="薬草"/>
<get weapon="ブロードソード" by="speedValue"/>
<heal hpof="Bob" num="30"/>
<script> heal = Actor.Alice.power * 3; </script>
<heal mpof="Alice" var="heal"/>
@eihigh
eihigh / desc.md
Last active January 31, 2019 01:41

ここにてテスト


heal コマンド

アクターのパラメータを回復します。

<heal hp="Alice" n="50"/>
@eihigh
eihigh / BI.txt
Last active February 6, 2019 13:15
commands {
heal {
desc <heal parameters>
args [
{ # --
desc <type and target actor>
key <actor>
attrs [
hpof <types.actor>
@eihigh
eihigh / YOL.txt
Last active February 6, 2019 04:20
-----
proc <hoge> { rcv <s> <Scanner> in (int) (string) out (string) } {
wait (60)
if <Var.count < 3> {
se <step1>
get { item <elixir> num (5) }
get { item <gold key> }
set <count> <knock_power * 2>
||
template string.
lorem ipsum ${r|たゆた|揺蕩}う sit amet.
player.hp = $<hp>
lorem ipsum ${em|sit} amet.
${set {pos <bottom> namepos <center>}}
${Bob|Hey, Alice.}

rakyll/statik を使うメモ

  • 生成されたパッケージは _ でインポートしておく
  • statik/fs.New は http.FileSystem を返す
  • statikFS.Open(path) で http.File 型のオブジェクトを取得できる
  • 取得したファイルは close する必要がない(closeの中で何もしていない)
package main
import (
"fmt"
"reflect"
)
func clean(slice interface{}, isDead func(int) bool) int {
rv := reflect.ValueOf(slice)
swap := reflect.Swapper(slice)