Skip to content

Instantly share code, notes, and snippets.

View runceel's full-sized avatar

Kazuki Ota runceel

View GitHub Profile
public class SomeViewModel // You don't need implementation of INotifyPropertyChanged
{
public ReactiveProperty<string> Message { get; } = new ReactiveProperty<string>();
}
public class SomeViewModel : BindableBase
{
private string _message;
public string Message
{
get { return _message; }
set { SetProperty(ref _message, value); }
}
}
public class BindableBase : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected virtual bool SetProperty<T>(ref T field, T value, [CallerMemberName]string propertyName)
{
if (EqualityComparer<T>.Default.Equals(storage, value)) return false;
storage = value;
RaisePropertyChanged(propertyName);
return true;
public class SomeViewModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
private string _message;
public string Message
{
get { return _message; }
set
{
using Moq;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace ConsoleApp10
{
class Program
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Unity;
using Unity.Lifetime;
namespace LINQLab
{
class Program
using System;
using System.Reactive.Linq;
using System.Reactive.Subjects;
using System.Threading.Tasks;
using Reactive.Bindings;
namespace RxLab
{
class Program
{
@runceel
runceel / Sample.cs
Last active January 21, 2019 06:52
// 定義
class Poco
{
public string Name { get; set; }
}
// ViewModel
class MyVM
{
private Poco Poco { get; }
# Launch server
node index.js
# Launch ngrok
ngrok http 4567
@runceel
runceel / index.js
Last active January 11, 2019 09:11
const express = require('express');
const bodyParser = require('body-parser');
const { dialogflow } = require('actions-on-google');
const graph = require('@microsoft/microsoft-graph-client');
const port = process.env.PORT || 4567;
const app = dialogflow({ debug: true });
app.intent('Default Welcome Intent', async conv => {
const client = graph.Client.init({
authProvider: (done) => {