Skip to content

Instantly share code, notes, and snippets.

View m2wasabi's full-sized avatar
🎲
Random

m2wasabi m2wasabi

🎲
Random
View GitHub Profile
@m2wasabi
m2wasabi / README.md
Last active October 20, 2021 06:18
AWS SNS to Discord Webhook

AWS SNS to Discord Webhook

Post SNS Message to Discord Webhook

Lambda Preferences

Key Value
Platform Node.js 14
handler index.handler
@m2wasabi
m2wasabi / README.md
Last active July 4, 2020 06:50
Google Cloud Functions で SendGridの Inbound Parse Webhook を受けて Discordに投げる

SendGrid - Discord

Relay SendGrid Inbound Parse Webhook to Discord

Environment Variables

Key Description
WEBHOOK_DISCORD Discord Webhook URL
@m2wasabi
m2wasabi / ModelFinalizer_blender2.8.patch
Created May 1, 2020 01:20
Model Finalizer 070 blender 2.8 用パッチ
diff -u -r 2.79/model_finalizer/__init__.py 2.8/model_finalizer/__init__.py
--- 2.79/model_finalizer/__init__.py 2018-12-08 22:53:13.769417900 +0900
+++ 2.8/model_finalizer/__init__.py 2020-05-01 09:48:15.034567700 +0900
@@ -6,8 +6,8 @@
bl_info = {
'name' : 'Model Finalizer', # Name of this Addon
'author' : 'Kafuji', # Author of this Addon
- 'version' : (0,7), # Version of this Addon
- 'blender' : (2, 7, 9), # Blender Version that this addon is compatible to
+ 'version' : (0, 7), # Version of this Addon
Blender 2.80 add-on update cheat sheet
??? = not verified or not correct in many cases, but may work
*** = verified to work in most or all cases
??? alpha needed
-mat.diffuse_color = (red_v, grn_v, blu_v) # viewport color
+mat.diffuse_color = (red_v, grn_v, blu_v, alpha_v) # viewport color
??? viewnumpad
-col.operator("view3d.viewnumpad", text="View Camera", icon='CAMERA_DATA').type = 'CAMERA'
@m2wasabi
m2wasabi / AvatarHandController.cs
Last active December 23, 2019 12:06
ValveIndexで指動かす最低実装
using System;
using UnityEngine;
using Valve.VR;
namespace ValveIndexFinger
{
public enum AvatarHand
{
Left,
Right
@m2wasabi
m2wasabi / FollowingCamera.cs
Created August 18, 2019 17:34
Unity用かんたんカメラ動かすやつ
// These codes are licensed under CC0.
// http://creativecommons.org/publicdomain/zero/1.0/deed.ja
using UnityEngine;
/// <summary>
/// The camera added this script will follow the specified object.
/// The camera can be moved by left mouse drag and mouse wheel.
/// </summary>
[ExecuteInEditMode, DisallowMultipleComponent]
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UniGLTF;
namespace VRM.DynamicBoneExtension
{
public class DynamicBoneLoadUtility {
public static void LoadSecondary(Transform root, List<Transform> nodes,
glTF_VRM_SecondaryAnimation secondaryAnimation)
@m2wasabi
m2wasabi / UTS_DoubleShadeWithFeather.cs
Last active April 11, 2019 21:41
VRM UTS2 Export Example
using System.Collections.Generic;
namespace UniGLTF.ShaderPropExporter
{
public static partial class PreShaderPropExporter
{
[PreExportShader]
static KeyValuePair<string, ShaderProps> UTS_DoubleShadeWithFeather
{
get
@m2wasabi
m2wasabi / README.md
Created August 6, 2018 23:45
Githubのユーザー名と鍵でLinuxユーザーを追加する

Githubのユーザー名と鍵でLinuxユーザーを追加する

セットアップ

sudo groupadd operator

添付の /etc/sudoers.d/operator をつくる
添付の /root/create_user.sh をつくる

@m2wasabi
m2wasabi / readme.md
Last active December 17, 2017 23:41
NefryBTで温度計

NefryBTで温度計

さむい!

How to use

1. 温湿度センサの接続

NefryBTのA0端子にGrove温湿度センサを接続する