Skip to content

Instantly share code, notes, and snippets.

sato-takashi takashicompany

View GitHub Profile
@takashicompany
takashicompany / movie_to_gif_animation.sh
Last active Mar 5, 2019
動画ファイルをキレイなgifにしてくれるコマンドライン
View movie_to_gif_animation.sh
#!/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" ;;
@takashicompany
takashicompany / subtree-template.sh
Last active Oct 8, 2018
git-subtree support shell.
View subtree-template.sh
#!/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
@takashicompany
takashicompany / OffscreenCaptureManager.cs
Created Dec 2, 2017
プレイヤーの画面とは別視点のリプレイを録画する
View OffscreenCaptureManager.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// UnityEngineと名前空間を分ける
using ocv = OpenCVForUnity;
// 録画に使いたいカメラにつけるコンポーネント
[RequireComponent(typeof(Camera))]
public class OffscreenCaptureManager : MonoBehaviour
View NumChar.cs
private static string[] _numChars = new string[]
{
"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""
};
View AnimationSampleExtension.cs
namespace TakashiCompany.Unity.Extension
{
using UnityEngine;
/// <summary>
/// UnityEngine.Animation extension.
/// </summary>
public static class AnimationSampleExtension
{
public static void SampleWithTime(
@takashicompany
takashicompany / PoolingContainer.cs
Created Oct 24, 2016
[Unity] GameObjectを生成・再利用するクラス
View PoolingContainer.cs
using UnityEngine;
using System.Collections.Generic;
/// <summary>
/// GameObjectを再利用するコンテイナー
/// </summary>
[System.Serializable]
public class PoolingContainer
{
[SerializeField]
@takashicompany
takashicompany / PhotonExtension.cs
Last active Jun 21, 2016
Unity Simple Photon Client and Sample.
View PhotonExtension.cs
// @takashicompany
using System;
using System.Reflection;
using System.Collections.Generic;
using ExitGames.Client.Photon;
using ExitGames.Client.Photon.LoadBalancing;
/// <summary>
@takashicompany
takashicompany / setting.json
Created Feb 29, 2016
Visual Studio Code setting.
View setting.json
// Place your settings in this file to overwrite the default settings
{
"editor.renderWhitespace": true,
"editor.insertSpaces": false,
"editor.quickSuggestions": true,
"editor.autoClosingBrackets": false,
"editor.referenceInfos": false
}
@takashicompany
takashicompany / iyashi-lgtm-json.js
Created Jan 22, 2016
癒やしLGTMのブックマークレット改良版
View iyashi-lgtm-json.js
javascript:(function(){
window.callback = function(json) {
javascript:prompt("【癒やしLGTM】下記のテキストをコピーしてGitHubのコメントに貼り付けよう!!\n※貼り付けた後、画像が表示されるまで少し時間がかかります。", json.lgtm);
};
var d = document;
var e = d.createElement('script');
e.charset='utf-8';
e.src = 'http://takashicompany.com/api/lgtm/jsonp';
d.getElementsByTagName('head')[0].appendChild(e);
})();
View ttttt
綁、查、卡
擊、徵、你
變、嗎、幫
你、吧、黃
晚、啊、夠
凳、间、楣
鏟、內、靶
錄、步、跑
氧、咖、啡
拖、啤、德
You can’t perform that action at this time.