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
using UnityEngine; | |
using System.Collections.Generic; | |
/// <summary> | |
/// GameObjectを再利用するコンテイナー | |
/// </summary> | |
[System.Serializable] | |
public class PoolingContainer | |
{ | |
[SerializeField] |
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
namespace TakashiCompany.Unity.Extension | |
{ | |
using UnityEngine; | |
/// <summary> | |
/// UnityEngine.Animation extension. | |
/// </summary> | |
public static class AnimationSampleExtension | |
{ | |
public static void SampleWithTime( |
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
private static string[] _numChars = new string[] | |
{ | |
"⓪","①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳","㉑","㉒","㉓","㉔","㉕","㉖","㉗","㉘","㉙","㉚","㉛","㉜","㉝","㉞","㉟","㊱","㊲","㊳","㊴","㊵","㊶","㊷","㊸","㊹","㊺","㊻","㊼","㊽","㊾","㊿" | |
}; |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
// UnityEngineと名前空間を分ける | |
using ocv = OpenCVForUnity; | |
// 録画に使いたいカメラにつけるコンポーネント | |
[RequireComponent(typeof(Camera))] | |
public class OffscreenCaptureManager : MonoBehaviour |
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
#!/bin/bash | |
repo=<subtree-repo path> | |
remote=<subtree-repo remote name> | |
branch=<subtree branch> | |
path=<local subtree path> | |
if [ $# -eq 0 ]; then | |
echo "this is git-subtree-suppot tool.\noptions:\n init\n pull\n push" | |
exit 1 |
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
#!/bin/bash | |
CMDNAME=`basename $0` | |
while getopts i:s:f:e: OPT | |
do | |
case $OPT in | |
"i" ) is_import="TRUE" ; import="$OPTARG";; | |
"s" ) is_size="TRUE" ; size="$OPTARG" ;; | |
"f" ) is_fps="TRUE" ; fps="$OPTARG" ;; |
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
[ | |
{ | |
"name": "HHKB JIS" | |
}, | |
[ | |
{ | |
"a": 6 | |
}, | |
"ESC", | |
{ |
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
#include QMK_KEYBOARD_H | |
#include <stdio.h> |
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
// キーを押した回数を格納する変数 | |
static uint16_t press_count = 0; | |
bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |
// キーが押されたら、カウンターをインクリメントする | |
if (record->event.pressed) { | |
press_count++; | |
} |
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
#ifdef OLED_DRIVER_ENABLE | |
void oled_task_user(void) { | |
// 現在のレイヤーを表示する | |
oled_write_ln_P(PSTR("Layer"), false); | |
char layer_str[12]; | |
snprintf(layer_str, sizeof(layer_str), "%d", get_highest_layer(layer_state)); | |
oled_write_ln(layer_str, false); | |