Skip to content

Instantly share code, notes, and snippets.

@yuw-unknown
yuw-unknown / wether_post_google_home.py
Last active May 21, 2019
気象情報をYOLPから取得し、雨が振りそうだったらGoogleHomeにPOSTします。
View wether_post_google_home.py
import requests
import urllib
import pprint
import json
import struct
import subprocess
def main():
url = makeUrl()
json_data = requestJson(url)
@yuw-unknown
yuw-unknown / Notification.cs
Created Dec 10, 2017
Notification-EventBus sample on Unity.
View Notification.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Notification {
static Notification _Instance;
public static Notification Instance {
get {
if (_Instance == null) {
@yuw-unknown
yuw-unknown / FirebaseRemoteConfig.cs
Last active Jul 7, 2019
Firebase RemoteConfig with Unity sample.
View FirebaseRemoteConfig.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using Firebase;
using Firebase.RemoteConfig;
using System.Threading.Tasks;
public class FirebaseRemoteConfig {
@yuw-unknown
yuw-unknown / FirebaseRealtimeDatabaseSample2.cs
Last active Jul 10, 2018
FirebaseのRealtimeDatabaseをUnityからTwitter認証を用いてデータ取得するSample vol2.
View FirebaseRealtimeDatabaseSample2.cs
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TwitterKit.Unity;
using Firebase;
using Firebase.Database;
using Firebase.Unity.Editor;
@yuw-unknown
yuw-unknown / FirebaseRealtimeDatabaseSample1.cs
Last active Jul 10, 2018
FirebaseのRealtimeDatabaseをUnityからTwitter認証を用いてデータ取得するSample
View FirebaseRealtimeDatabaseSample1.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using TwitterKit.Unity;
using Firebase;
using Firebase.Database;
using Firebase.Unity.Editor;
@yuw-unknown
yuw-unknown / FirebaseTwitterAuthenticationSample.cs
Last active Sep 2, 2017
Firebase AuthenticationのTwitter認証Sample.
View FirebaseTwitterAuthenticationSample.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Linq;
using TwitterKit.Unity;
using Firebase;
using Firebase.Database;
using Firebase.Unity.Editor;
public class PUFirebaseTwitterLogin : MonoBehaviour {
@yuw-unknown
yuw-unknown / TwitterKitForUnitySample.cs
Last active Aug 26, 2017
Twitter Kit for UnityのSample
View TwitterKitForUnitySample.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TwitterKit.Unity;
public class TwitterKitForUnitySample : MonoBehaviour {
private string _AccessToken;
private string _Secret;
@yuw-unknown
yuw-unknown / ArborTransitionOnClick.cs
Created Aug 21, 2017
Arbor2とUniRxとを組み合わせ指定回数クリックされたら次のStateに遷移する。
View ArborTransitionOnClick.cs
using UnityEngine;
using System.Collections;
using System.Linq;
using Arbor;
using UniRx;
using UniRx.Triggers;
/**
* 指定回数Mouseクリック / Tapがされると次のStateへ遷移するScriptです。
@yuw-unknown
yuw-unknown / ArborChangeSpriteColor.cs
Created Aug 16, 2017
Arbor2でSpriteRendererの色を変更します
View ArborChangeSpriteColor.cs
using UnityEngine;
using System.Collections;
using Arbor;
/**
* Spriteの色を変更します
*/
// MenuのComponentにメニューを追加する
[AddComponentMenu("Arbor/Sprite色変更")]
@yuw-unknown
yuw-unknown / ArborOpenDoorTransition.cs
Created Aug 15, 2017
Arbor2Sample 条件を見て、State先を切り替える
View ArborOpenDoorTransition.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Arbor {
/**
* 戸棚があいていればTransitionします
*/
[AddComponentMenu("")]
You can’t perform that action at this time.