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
// ML.NETで誰が言ったセリフかを推定する | |
// | |
// ML.NETのセットアップ方法は下記を参照 | |
// https://www.microsoft.com/net/learn/apps/machine-learning-and-ai/ml-dotnet/get-started/windows | |
using Microsoft.ML; | |
using Microsoft.ML.Models; | |
using Microsoft.ML.Runtime.Api; | |
using Microsoft.ML.Trainers; | |
using Microsoft.ML.Transforms; | |
using System; |
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
$vhdPath="sample.vhdx" | |
$vhdSize = 20GB | |
$driveLetter = "E" | |
$label = "Data" | |
$fileSystem = "NTFS" | |
New-VHD -Path $vhdPath -Dynamic -SizeBytes $vhdSize | |
Mount-VHD -Path $vhdPath | |
$disk = get-vhd -path $vhdPath | |
Initialize-Disk $disk.DiskNumber |
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.Collections.Generic; | |
using System.IO; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
namespace Mpga | |
{ | |
/// <summary> | |
/// Directory.GetLogicalDrives() does not return network drives when a process | |
/// is running with administrator privileges. |
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 SharpDX; | |
using SharpDX.Direct2D1; | |
using SharpDX.DirectWrite; | |
using SharpDX.Mathematics.Interop; | |
using d2 = SharpDX.Direct2D1; | |
using d3d = SharpDX.Direct3D11; | |
using dxgi = SharpDX.DXGI; | |
using wic = SharpDX.WIC; |
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
#r "Newtonsoft.Json" | |
using System; | |
using System.Text; | |
using System.Net; | |
using Newtonsoft.Json; | |
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log) | |
{ | |
log.Info("C# HTTP trigger function processed a request."); |
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
{ | |
"bindings": [ | |
{ | |
"authLevel": "function", | |
"name": "req", | |
"type": "httpTrigger", | |
"direction": "in", | |
"methods": [ | |
"post" | |
] |
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 AngleSharp.Dom.Html; | |
using AngleSharp.Parser.Html; | |
using PuppeteerSharp; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; |
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
#include <M5Stack.h> | |
#include <WiFiClientSecure.h> | |
WiFiClientSecure client; | |
const char* ssid = "your SSID"; // WiFi SSID | |
const char* password = "your WiFi password"; // WiFi PW | |
const char* host = "host name (e.g. example.azurewebsites.net)"; | |
const char* path = "url (e.g. /api/EnvMonitor?code=AAA==)"; |
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 PuppeteerSharp; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ChromeDownload | |
{ |
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
@echo on | |
pushd %~dp0 | |
set fullpath=%1 | |
if [%1] equ [] ( | |
echo %date% %time% "引数が指定されていません" >> restart.log | |
goto :END | |
) | |
call :CHECK_TASK %fullpath% | |
goto :END |