Skip to content

Instantly share code, notes, and snippets.

tencho shop-0761

Block or report user

Report or block shop-0761

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@shop-0761
shop-0761 / trelloForGAS
Created Nov 3, 2017
trello + GAS する時の関数たち
View trelloForGAS
//trelloの指定のボードIDを取得する関数
function getTrelloBoardID(trello_API_KEY, trello_TOKEN, trello_USERNAME, boardName){
var url = 'https://trello.com/1/members/' + trello_USERNAME + '/boards?key=' + trello_API_KEY + '&token=' + trello_TOKEN + '&fields=name';
var fetch = UrlFetchApp.fetch(url, {'method':'get'});
var json = JSON.parse(fetch);
for(var i in json){
if(json[i].name == boardName){
return json[i].id;
@shop-0761
shop-0761 / MakeZipForGAS
Created Nov 16, 2017
GASでzipをつくるやつ
View MakeZipForGAS
//フォルダの中身をzipにする関数
function makeZip(fileName, folderId){
var folder = DriveApp.getFolderById(folderId);
var fileList = folder.getFiles();
var archive = "";
var blobs = new Array();
while(fileList.hasNext()){
var file = fileList.next();
@shop-0761
shop-0761 / Hugo_appyaml
Created Feb 7, 2018
ホームページで使ってるapp.yaml
View Hugo_appyaml
runtime: go
api_version: go1
handlers:
- url: /
static_files: public/index.html
upload: /
- url: /css
static_dir: public/css
- url: /fonts
@shop-0761
shop-0761 / Zaif succession agree mail
Last active Dec 13, 2018
Zaif 「承継同意に関するお手続きのご案内」メール
View Zaif succession agree mail
Date: 2018/11/28
Title:承継同意お手続きのお願い
Zaif
承継同意お手続きのお願い
日頃より仮想通貨取引所『Zaif』をご利用いただきましてありがとうございます。
度重なるご連絡、誠に恐れ入ります。11/22よりZaifの運営が弊社から株式会社フィスコ仮想通貨取引所に変更になりました。そのため、お客さまには本変更に関しまして、同意のお手続きをお願いしております。
@shop-0761
shop-0761 / SteamVR Plugin2.0 Input Sample.cs
Last active Jan 26, 2019
SteamVR Plugin 2.0 で入力を取るサンプル 要UniRx
View SteamVR Plugin2.0 Input Sample.cs
using UnityEngine;
using Valve.VR;
using UniRx;
public class SteamVRNotifierBase
{
public string buttonName;
public bool isLeft;
}
@shop-0761
shop-0761 / SelfManagementOfTrackedDevices.cs
Last active Jan 26, 2019
HMDなしでViveTrackerを使うサンプル
View SelfManagementOfTrackedDevices.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Valve.VR;
public class SelfManagementOfTrackedDevices : MonoBehaviour
{
public GameObject[] targetObjs;
public ETrackedDeviceClass targetClass = ETrackedDeviceClass.GenericTracker;
public KeyCode resetDeviceIds = KeyCode.Tab;
@shop-0761
shop-0761 / GameData.cs
Last active Jan 26, 2019
MessagePackでセーブとロードするやつ
View GameData.cs
//MessagePack をいれとく
//https://github.com/neuecc/MessagePack-CSharp/releases
//GameData.Load(gameObject) GameData.Save(gameObject) で使う
[MessagePack.MessagePackObject]
public class saveDataFormat
{
[MessagePack.Key(0)]
public string name;
[MessagePack.Key(1)]
@shop-0761
shop-0761 / fragWithSurfSample.shader
Last active Jan 26, 2019
fragment Shader 内で Surface shader を展開する例
View fragWithSurfSample.shader
#include "UnityPBSLighting.cginc"
fixed4 frag(v2f i) : SV_Target
{
Input surfIN;
UNITY_INITIALIZE_OUTPUT(Input, surfIN);
SurfaceOutputStandard o;
UNITY_INITIALIZE_OUTPUT(SurfaceOutputStandard, o);
surf(surfIN, o);
return fixed4(o.Albedo,0);
@shop-0761
shop-0761 / FragmentWithSurface.shader
Created Feb 11, 2019
Fragment と surface を一緒に使うやつ
View FragmentWithSurface.shader
Shader "Custom/fragmentWithSurface" {
Properties {
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Glossiness ("Smoothness", Range(0,1)) = 0.5
_Metallic ("Metallic", Range(0,1)) = 0.0
}
SubShader {
Tags { "RenderType"="Opaque" }
@shop-0761
shop-0761 / ResolvedView
Last active Dec 3, 2019
UE4のResolvedView.hogehoge で取れそうなやつ
View ResolvedView
ResolvedView
{
float4x4 TranslatedWorldToClip;
float4x4 WorldToClip;
float4x4 TranslatedWorldToView;
float4x4 ViewToTranslatedWorld;
float4x4 TranslatedWorldToCameraView;
float4x4 CameraViewToTranslatedWorld;
float4x4 ViewToClip;
float4x4 ViewToClipNoAA;
You can’t perform that action at this time.