Skip to content

Instantly share code, notes, and snippets.

View TetsuOtter's full-sized avatar
🤣
Enjoy Geek!

TR TetsuOtter

🤣
Enjoy Geek!
View GitHub Profile
@TetsuOtter
TetsuOtter / .LICENSE
Last active August 23, 2023 15:15
launch iOS App on Device and Simulator from terminal
MIT License
Copyright (c) 2023 Tetsu Otter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@TetsuOtter
TetsuOtter / db.sample.json
Created April 1, 2023 07:09
TRViS用 JSON形式DBファイルのサンプル
[
{
"Name": "WorkGroup01",
"DBVersion": 1,
"Works": [
{
"Name": "WG01-Work01",
"AffectDate": "20230318",
#!/bin/bash
# Architecture
ARCHITECTURE=`uname -a`
# CORE: can contain several CPUs
# CPU physical
PHY_CPU_COUNT=`lscpu -b -p=core | grep -E '[0-9]+' | wc -l`
# vCPU
V_CPU_COUNT=`lscpu -b -p=cpu | grep -E '[0-9]+' | wc -l`
@TetsuOtter
TetsuOtter / Commands.md
Last active April 2, 2021 03:42
BIDS ASCII Commands Doc

BIDS ASCII Commands doc

このファイルは, BIDSの文字列コマンド形式の説明です. v202に対応しています

コマンド形式

コマンドの形式は, 次のとおりです. なお, 二行目に記載の文字列はコマンド例です.

[Header][Identifier][DataType(Optional)][RequestNumber][Suffix]
TRIP52\n
@TetsuOtter
TetsuOtter / ToCheckTargetPlatform.md
Last active February 18, 2021 11:11
Reference information for creating a function that uses PE header information to classify DLL types.

C# x64 Release DLL(DllExport passed)

... 0h 1h 2h 3h 4h 5h 6h 7h 8h 9h Ah Bh Ch Dh Eh Fh
00h 4D 5A 90 00 03 00 00 00 04 00 00 00 FF FF 00 00
10h B8 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00
20h 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30h 00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 00
40h 0E 1F BA 0E 00 B4 09 CD 21 B8 01 4C CD 21 54 68
50h 69 73 20 70 72 6F 67 72 61 6D 20 63 61 6E 6E 6F
60h 74 20 62 65 20 72 75 6E 20 69 6E 20 44 4F 53 20
@TetsuOtter
TetsuOtter / 20201204.0101.SMemLibV1_0_4.PanelSample.cs
Created December 13, 2020 16:08
The way to get the value of "ats0" and "ats55", for example.
using TR.BIDSSmemLib;//Please add reference to "TR.BIDSSMemLib.rw" version 1.0.4
private void SampleFunction()
{
SMemLib sml = new SMemLib();//Create Instance
int[] panels = sml.PanelA;//Get Reference(pointer) to Panel Data(Array) Area
int AAAAA = panels[55];//Get the value of "ats55"
int BBB = panels[0];//Get the value of "ats0"
//int CCCC = panel[-1];//It will error
//int DDDD = panel[256];//It will not work with BVE5
@TetsuOtter
TetsuOtter / TR.BVE5_6.InputDevicePISample.cs
Last active October 26, 2020 08:41
BVE5/6用 入力デバイスプラグインのサンプルプログラム(Tetsu Otter作成版)
//Under the CC0 License
//I haven't done any checks in BVE5 or BVE6. If you have any questions or problems, please contact me : @Tetsu_Otter@twitter.com
//特に動作確認等行っていません. 何か質問や不具合等あれば, @Tetsu_Otter@twitter.comまで.
using System;
using System.Reflection;
using System.Windows.Forms;
using Mackoy.Bvets;
@TetsuOtter
TetsuOtter / analogReadX2_SerialPrint
Last active October 26, 2020 06:41
Arduinoで, 2つのアナログピンに対する入力値平均を取得する
#define VR1_PIN A2 //可変抵抗1を接続しているアナログピンのピン記号
#define VR2_PIN A5 //可変抵抗2を接続しているアナログピンのピン記号
#define LOOP_TIME 100 //平均導出のためのサンプリング数
#define VAR_TYPE unsigned long long int //平均導出用に記録を保持する変数の型. ここまでしないとオーバーフローを防げなかった.
void setup(){
Serial.begin(9600); //シリアル通信開始
}