This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using Microsoft.WindowsAzure; | |
using Microsoft.WindowsAzure.StorageClient; | |
namespace AzureBlobBatch | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AssetBundleNameGenerator | |
{ | |
[MenuItem("AssetBundles/Set XXX")] | |
public static void SetXXX() | |
{ | |
foreach (var file in Directory | |
.GetFiles("Assets/XXX/XXX/", | |
"*.xxx", SearchOption.TopDirectoryOnly)) | |
{ | |
var importer = AssetImporter.GetAtPath(file); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Threading.Tasks; | |
using System.Web.Http; | |
using Microsoft.ProjectOxford.Vision; | |
using Microsoft.ProjectOxford.Vision.Contract; | |
namespace ComputerVisionAPI.Controllers | |
{ | |
public class ComputerVisionApiController : ApiController | |
{ | |
public async Task<AnalysisResult> Get(string url) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Linq; | |
using System.Threading.Tasks; | |
using System.Web.Http; | |
using Google.Apis.Services; | |
using Google.Apis.Vision.v1; | |
using Google.Apis.Vision.v1.Data; | |
namespace ComputerVisionAPI.Controllers | |
{ | |
public class GoogleVisionApiController : ApiController |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using Microsoft.Owin; | |
namespace SampleApp.Core.OwinMiddlewares | |
{ | |
public class UserActionLogMiddleware : OwinMiddleware | |
{ | |
// このパスにアクセスが来たらログ採取開始 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Google.Apis.Util; | |
namespace SampleApp.BigQuery.Actions | |
{ | |
public static class BigQueryStreaming |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Web.Http; | |
using BigQuery.Linq; | |
using SampleApp.BigQuery; | |
using SampleApp.BigQuery.Tables.Statistics; | |
using WebApi.OutputCache.V2; | |
namespace SampleApp.Admin.Controllers | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@model UserActionSankeyDiagramViewModel | |
@{ | |
ViewBag.Title = "ユーザーの行動"; | |
} | |
<h2>ユーザーの行動(BigQuery ※1日キャッシュ)</h2> | |
<div class="padding-top-10"></div> | |
@using (Html.BeginForm("Index", "UserActionSankeyDiagram", FormMethod.Get, new { role = "form" })) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Web.Mvc; | |
namespace SampleApp.Helpers | |
{ | |
public static class HtmlHelperExtensions | |
{ | |
public static SelectListItem[] Months(this HtmlHelper htmlHelper, DateTime from, DateTime to, DateTime selected) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
public static class TechnicalAnalysisFormula | |
{ | |
public static double Rsi(double[] source, int period) | |
{ | |
if (source == null) throw new ArgumentNullException(nameof(source)); | |
if (source.Length <= period) throw new ArgumentException(nameof(source) + ".Length <= period"); |
OlderNewer