Skip to content

Instantly share code, notes, and snippets.

大庭俊介 baobao

Block or report user

Report or block baobao

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
View PrefabModeTest.cs
using UnityEngine;
public class PrefabModeTest : MonoBehaviour
{
void Awake()
{
Debug.Log($"Awake : Prefabモードのワタシ {this}", this);
}
void OnEnable()
View DOTweenAwaiterExtensionWithCancel.cs
using System;
using System.Threading;
using System.Threading.Tasks;
using DG.Tweening;
using UnityEngine;
// DOTweenAwaiterExtensionサンプルコード(キャンセル有り)
public class DOTweenAwaiterExtensionWithCancel : MonoBehaviour
{
async void Start()
View DOTweenAwaiterExtensionSample.cs
using System;
using System.Threading;
using System.Threading.Tasks;
using DG.Tweening;
using UnityEngine;
// DOTweenAwaiterExtensionサンプルコード(キャンセル処理なし)
public class DOTweenAwaiterExtensionSample : MonoBehaviour
{
async void Start()
View DOTweenAwaiterExtension.cs
using System;
using System.Runtime.CompilerServices;
using System.Threading;
using DG.Tweening;
using UnityEngine;
/// <summary>
/// DOTweenをasync/awaitに返還すDOTweenAwaiterの拡張メソッド
/// </summary>
public static class DOTweenAwaiterExtension
View MyTaskCancel.cs
using System;
using System.Threading;
using System.Threading.Tasks;
using UnityEngine;
public class MyTaskCancel : MonoBehaviour
{
// タスクをキャンセルさせるためのCancellationTokenSource
private CancellationTokenSource _cts;
View TaskDelayCacncel.cs
using System;
using System.Threading;
using System.Threading.Tasks;
using UnityEngine;
public class TaskDelayCacncel : MonoBehaviour
{
// タスクをキャンセルさせるためのCancellationTokenSource
private CancellationTokenSource _cts;
View AsyncAwaitWait.cs
using System.Threading.Tasks;
using UnityEngine;
public class AsyncAwaitWait : MonoBehaviour
{
async void Start()
{
// 5秒待機する
await ExecuteWait();
Debug.Log("Complete");
@baobao
baobao / docker-compose.yml
Last active Aug 22, 2019
nginxを立ちあげる
View docker-compose.yml
version: '3'
services:
nginx:
image: nginx:latest
ports:
- 8080:80
volumes:
- ./public:/usr/share/nginx/html
View docker-compose.yml
version: '2'
services:
web:
build:
context: ./
dockerfile: deploy/web.docker
volumes:
- ./:/var/www
ports:
- "8080:80"
View lcd_sample.ino
#include <LiquidCrystal.h>
// lcd変数生成
// RS, E, D4, D5, D6, D7という引数が代入されます
LiquidCrystal lcd(4, 6, 10, 11, 12, 13);
void setup()
{
// LCD1602なので、16文字2行を代入
lcd.begin(16, 2);
You can’t perform that action at this time.