Skip to content

Instantly share code, notes, and snippets.

@esetomo
esetomo / Clothing.cs
Created March 19, 2019 10:56
SkinnedMeshの追従先ボーンを指定オブジェクト以下の同名のものに変えるスクリプト
using UnityEngine;
using UnityEditor;
using System.Linq;
public class Clothing : EditorWindow {
[MenuItem("Window/Clothing")]
public static void ShowWindow()
{
GetWindow(typeof(Clothing));
}
@esetomo
esetomo / rename_bones.py
Created June 16, 2018 10:45
アークトラスちゃんでCats Blender PluginのFull Body Tracking Fixがエラーになるのを何とかするやつ
import bpy
bone_map = {
"Root_J_New": "Hips",
"Leg_L_J": "LeftLeg",
"Leg_R_J": "RightLeg",
"Hiza_L_J": "LeftKnee",
"Hiza_R_J": "RightKnee",
"Ashikubi_L_J": "LeftFoot",
"Ashikubi_R_J": "RightFoot",
@esetomo
esetomo / PanoStereoUnlit.shader
Last active April 27, 2018 01:10
立体視シェーダ
Shader "Unlit/PanoStereo"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
}
SubShader
{
Tags { "RenderType"="Opaque" }
LOD 100
@esetomo
esetomo / keybase.md
Created May 21, 2017 12:00
keybase.md

Keybase proof

I hereby claim:

  • I am esetomo on github.
  • I am ichigomayo (https://keybase.io/ichigomayo) on keybase.
  • I have a public key ASCwIzYD1jMMi1J7qe7vG52PCckTno2ziQSc4lzKwEe5Pwo

To claim this, I am signing this object:

@esetomo
esetomo / Gemfile
Created May 1, 2017 17:49
マストドンに通知を送り付けるやつ
# frozen_string_literal: true
source "https://rubygems.org"
gem 'mail'
gem 'mastodon-api', require: 'mastodon', github: 'tootsuite/mastodon-api'
@esetomo
esetomo / .env.production
Created April 29, 2017 16:52
MastodonでConoHaさんのオブジェクトストレージを使う設定
SWIFT_ENABLED=true
SWIFT_USERNAME=gncuなんとか
SWIFT_TENANT=gnctなんとか
SWIFT_PASSWORD=[APIパスワード]
SWIFT_AUTH_URL=https://identity.tyo1.conoha.io/v2.0/tokens
SWIFT_CONTAINER=mayodon
SWIFT_OBJECT_URL=https://media.s-tomo.jp/mayodon
@esetomo
esetomo / Guardfile
Created May 6, 2014 12:26
Inkscapeでsvgファイルが保存されたら各サイズのアイコンPNGファイルを生成
guard :shell do
watch(%r{(.+)\.svg}) do |m|
%w(Small 40 60 76).each do |size|
['', '@2x'].each do |scale|
width = size.to_i
width = 32 if width == 0
width *= 2 if scale == '@2x'
system("inkscape #{m[0]} --export-png=#{m[1]}-#{size}#{scale}.png --export-area-page --export-width=#{width}")
end
end
@esetomo
esetomo / colorpicker.lsl
Created April 5, 2014 21:22
LSLによるカラーピッカー(そうじゃない)
string html = "
<!doctype html>
<script src='http://code.jquery.com/jquery-2.1.0.min.js'></script>
<script src='http://cdn.jsdelivr.net/jquery.minicolors/2.1.2/jquery.minicolors.js'></script>
<link rel='stylesheet' href='http://cdn.jsdelivr.net/jquery.minicolors/2.1.2/jquery.minicolors.css'/>
<style>
input{border: black solid 1px;}
</style>
<input id='color' type='text' value='#000000'>
<script>
@esetomo
esetomo / gist:9433630
Created March 8, 2014 15:38
DAE吐く前の加工的な何か
# -*- coding: utf-8 -*-
import bpy.ops
import bmesh
import os
workdir = os.path.dirname(bpy.data.filepath)
os.chdir(workdir)
outdir = os.path.join(workdir, 'out')
rev = os.popen("git log --pretty=oneline -1 head.blend export.py | cut --fields=1 --delimiter=' '").read()[0:6]
diff -r 5c4dc17956b9 indra/llui/lltexteditor.cpp
--- a/indra/llui/lltexteditor.cpp Fri Aug 16 13:05:38 2013 +0100
+++ b/indra/llui/lltexteditor.cpp Fri Aug 16 17:18:26 2013 +0100
@@ -2782,6 +2782,9 @@
BOOL LLTextEditor::getPreeditLocation(S32 query_offset, LLCoordGL *coord, LLRect *bounds, LLRect *control) const
{
+ static LLUICachedControl<S32> preedit_marker_thickness ("UIPreeditMarkerThickness", 0);
+ static LLUICachedControl<S32> preedit_standout_thickness ("UIPreeditStandoutThickness", 0);
+