Skip to content

Instantly share code, notes, and snippets.

View chomado's full-sized avatar
🎀
Working

ちょまど | Madoka Chiyoda chomado

🎀
Working
View GitHub Profile
CEKRequest request = ...; // Clova から来たリクエスト
var client = new LineMessagingClient("LINE Developers で取得できるシークレット");
await client.PushMessageAsync(
request.Session.User.UserId,
new List<ISendMessage>
{
new TextMessage("送りたいメッセージ"),
});
@chomado
chomado / CameraControler.cs
Last active December 7, 2017 03:07
Playerに追従するカメラ
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraController : MonoBehaviour
{
public GameObject Player;
private Vector3 offset;
// Use this for initialization
{
"pinpointLocations":[
{
"link":"http://weather.livedoor.com/area/forecast/4020200",
"name":"\u5927\u725f\u7530\u5e02"
},
{
"link":"http://weather.livedoor.com/area/forecast/4020300",
"name":"\u4e45\u7559\u7c73\u5e02"
},
public class Rootobject
{
public Pinpointlocation[] pinpointLocations { get; set; }
public string link { get; set; }
public Forecast[] forecasts { get; set; }
public Location location { get; set; }
public DateTime publicTime { get; set; }
public Copyright copyright { get; set; }
public string title { get; set; }
public Description description { get; set; }
class Program
{
static void Main(string[] args)
{
WeatherAsync().Wait();
Console.ReadKey(); // 何かキーを押すまでプログラムが終了しない
}
private static async Task WeatherAsync()
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LiveUnitTestSample
{
public class Calc
{
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using LiveUnitTestSample;
namespace UnitTestProject1
{
[TestClass]
public class UnitTest1
{
[TestMethod]
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using LiveUnitTestSample;
namespace UnitTestProject1
{
[TestClass]
public class UnitTest1
{
[TestMethod]
@chomado
chomado / Add1.cs
Last active February 16, 2017 14:57
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LiveUnitTestSample
{
public class Calc
{
@chomado
chomado / UITest.cs
Last active February 15, 2017 06:01
UITest
// 『UserText』というIDの振られたテキストフォームに『テスト入力です』と入力する
app.EnterText(c => c.Marked("UserText"), "テスト入力です");
// 『UserText』というIDの振られたテキストフォームの入力文字列を空にする
app.ClearText("UserText");
// 『UserText』というIDの振られたテキストフォームに『テスト入力2』と入力する
app.EnterText(c => c.Marked("UserText"), "テスト入力2");
// 『LoginButton』というIDのボタンをタップする