Skip to content

Instantly share code, notes, and snippets.

🎀
Working

ちょまど | Madoka Chiyoda chomado

🎀
Working
Block or report user

Report or block chomado

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 Sample.cs
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 Dec 7, 2017
Playerに追従するカメラ
View CameraControler.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraController : MonoBehaviour
{
public GameObject Player;
private Vector3 offset;
// Use this for initialization
View original.json
{
"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"
},
View PastedJsonClass.cs
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; }
View GetWeatherRestApi.cs
class Program
{
static void Main(string[] args)
{
WeatherAsync().Wait();
Console.ReadKey(); // 何かキーを押すまでプログラムが終了しない
}
private static async Task WeatherAsync()
{
View Calc2.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LiveUnitTestSample
{
public class Calc
{
View UnitTest2.cs
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using LiveUnitTestSample;
namespace UnitTestProject1
{
[TestClass]
public class UnitTest1
{
[TestMethod]
View UnitTest1.cs
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using LiveUnitTestSample;
namespace UnitTestProject1
{
[TestClass]
public class UnitTest1
{
[TestMethod]
View Add1.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LiveUnitTestSample
{
public class Calc
{
View UITest.cs
// 『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のボタンをタップする
You can’t perform that action at this time.