Skip to content

Instantly share code, notes, and snippets.

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@hhyyg
hhyyg / package.config
Created June 28, 2016 06:57
Azure Search API Sample
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net46" />
<package id="Newtonsoft.Json" version="6.0.4" targetFramework="net46" />
</packages>
@hhyyg
hhyyg / AzureSearchHelper.cs
Created December 8, 2016 07:56
Azure Search の Blob Indexer のサンプルです
using Microsoft.Azure.Search;
using System.Configuration;
namespace Miso.AzureSearchSample.Models
{
public class AzureSearchHelper
{
public static SearchServiceClient CreateSearchServiceClient()
{
@hhyyg
hhyyg / RoundedBoxView.cs
Last active January 19, 2017 08:09
[AndroidHandsOn · P3PPP/NakayokunaruHandsOn Wiki](https://github.com/P3PPP/NakayokunaruHandsOn/wiki/AndroidHandsOn) こちらのハンズオン前半を、Prism で Bindable にした場合のコード。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
using Xamarin.Forms;
namespace App.Controls
{
body {
padding-top: 50px;
padding-bottom: 223px;
background-image: url(/content/images/abc.png); background-image: url(/content/images/abc.png);
}
.div1 {
background-image: url(/content/images/abc.png);
}
@hhyyg
hhyyg / CustomPicker.cs
Last active February 10, 2017 05:03
MyBindableCustomPicker / Xamarin.Forms
using System;
using System.Collections;
using System.Collections.Specialized;
using Xamarin.Forms;
namespace Miso.SearchForms.Controls
{
/// <summary>
/// Bindable Custom Picker
///
#define HowToExample
using System;
using System.Configuration;
using System.Linq;
using System.Threading;
using Microsoft.Azure.Search;
using Microsoft.Azure.Search.Models;
using Microsoft.Spatial;
@hhyyg
hhyyg / OpenURL.cs
Created July 30, 2017 06:34
Adaptive Card Action Sample
/*
using AdaptiveCards;
using Microsoft.Bot.Builder.Dialogs;
using Microsoft.Bot.Connector;
using System.Collections.Generic;
*/
/// <summary>
/// URLを開くカード
/// </summary>
@hhyyg
hhyyg / Script.csx
Last active August 7, 2017 13:04
Thanks: Dave Glick - Announcing Scripty https://daveaglick.com/posts/announcing-scripty
using Microsoft.CodeAnalysis;
using System.Web;
using System.Linq;
using System.Collections.Generic;
using System.Reflection;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.CSharp.Extensions;