Skip to content

Instantly share code, notes, and snippets.

@tsubaki
tsubaki / ShowCharacter.cs
Last active February 13, 2019 03:09
TextMeshProにて、GC無しで数字を表現する(ビルド後のみ・5桁まで)
using UnityEngine;
using TMPro;
public class ShowCharacter : MonoBehaviour
{
[SerializeField]
TextMeshProUGUI label;
[Range(0, 99999)]
[SerializeField]
@neon-izm
neon-izm / HumanTrait.MuscleNames.csv
Created September 17, 2018 02:36
HumanPose.musclesの中身の95個のfloatはこんな感じ。55から94に指の情報が入っている
0 Spine Front-Back
1 Spine Left-Right
2 Spine Twist Left-Right
3 Chest Front-Back
4 Chest Left-Right
5 Chest Twist Left-Right
6 UpperChest Front-Back
7 UpperChest Left-Right
8 UpperChest Twist Left-Right
9 Neck Nod Down-Up
@neuecc
neuecc / StringSpan.cs
Last active November 13, 2017 13:14
StringSpan(Split, GetBytes, Trim), StringKey(for Dictionary Key as string, char[], StringSpan)
using System;
using System.Text;
public static class StringSplitExtensions
{
public static SplitCharEnumerator SplitSlice(this string str, char separator)
{
return new SplitCharEnumerator(str, separator);
}
@ryo-ma
ryo-ma / README.md
Last active June 10, 2017 01:28
This script is test to fail when MonobehaviourTest is timeout.

TimeoutMonobehaviourTest

Description

  • This script is test to fail when MonobehaviourTest is timeout.

Environment

  • Unity Version 5.6.0

How to use

  • Please inherit your own class instead of Monobehaviour.
@GOROman
GOROman / EyeJitter.cs
Last active September 10, 2024 07:36
Unityで微細眼球運動っぽい何か
using UnityEngine;
using System.Collections;
public class EyeJitter : MonoBehaviour {
float timer = 0.0f;
Quaternion rot;
public float changeTime = 0.4f; // 変更する時間最小値
@nownabe
nownabe / .commit_template
Created July 5, 2016 06:54
Emojiで楽しく綺麗なコミットを手に入れる
# ==== Emojis ====
# 🐛 :bug: バグ修正
# 👍 :+1: 機能改善
# ✨ :sparkles: 部分的な機能追加
# 🎉 :tada: 盛大に祝うべき大きな機能追加
# ♻️ :recycle: リファクタリング
# 🚿 :shower: 不要な機能・使われなくなった機能の削除
# 💚 :green_heart: テストやCIの修正・改善
@hamada-lemois
hamada-lemois / main.cpp
Created March 16, 2016 14:13
static const string members of struct in class
#include <iostream>
class Character {
public:
struct Direction {
static const std::string Front;
static const std::string Back;
static const std::string Left;
static const std::string Right;
};
@tk3fftk
tk3fftk / hubot_google_calendar.coffee
Last active November 19, 2017 23:26
hubotに毎朝予定をお知らせしてもらう
fs = require('fs')
readline = require('readline')
google = require('googleapis')
googleAuth = require('google-auth-library')
calendar = google.calendar('v3')
SCOPES = [ 'https://www.googleapis.com/auth/calendar.readonly' ]
TOKEN_DIR = (process.env.HOME or process.env.HOMEPATH or process.env.USERPROFILE) + '/.credentials/'
TOKEN_PATH = TOKEN_DIR + 'calendar-api-quickstart.json'
# Create an OAuth2 client with the given credentials, and then execute the
@Namek
Namek / TagsLayersEnumBuilder.cs
Last active September 26, 2024 09:02
Tags and Layers Enums Builder for Unity3D
#if UNITY_EDITOR
using UnityEngine;
using System.Collections;
using UnityEditor;
using System;
using System.IO;
using System.Text;
public class TagsLayersEnumBuilder : EditorWindow {
[MenuItem("Edit/Rebuild Tags And Layers Enums")]
@ybenjo
ybenjo / README.md
Last active December 13, 2023 08:04 — forked from yagays/agqr.rb
save AGQR radio programs.

agqr.rb

これは何

AGQR の放送を保存するスクリプト.

fork 元との違いは

yagays / agqr.rb には

  • 31日まである月に翌日の指定が失敗する

というバグが存在する.