This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<Choose> | |
<!-- I could not find key of v8.1 in HKCU --> | |
<!-- if you want to support another SDK version,add When directive(Entry at the top will be priority) --> | |
<!-- for windows sdk 8.1A--> | |
<When Condition="'$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.1A@InstallationFolder)' != ''"> | |
<PropertyGroup> | |
<MyWindowsSdkDir>$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.1A@InstallationFolder)</MyWindowsSdkDir> | |
</PropertyGroup> |
This file contains 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.IO; | |
using System.Collections.Generic; | |
static class StreamToEnumerableExtension | |
{ | |
public static IEnumerable<byte> AsEnumerable(this Stream stm, int bufferSize = 1024*50, CancellationToken ctoken = default(CancellationToken)) | |
{ | |
var buf = new byte[bufferSize]; | |
do | |
{ | |
ctoken.ThrowIfCancellationRequested(); |
This file contains 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.Net; | |
using System.Threading.Tasks; | |
static string MyExtension(this int num) | |
{ | |
return "my extension"; | |
} | |
public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log) | |
{ |
This file contains 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; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Npgsql; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
namespace LambdaTest | |
{ |
This file contains 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
[1B68:1E84][2016-06-28T12:59:51]i001: Burn v3.10.2.2516, Windows v6.3 (Build 9600: Service Pack 0), path: C:\Users\ito\AppData\Local\Temp\{79E1B3B5-BAC0-46B5-A959-C63F453190AA}\.cr\DotNetCore.1.0.0-VS2015Tools.Preview2.exe | |
[1B68:1E84][2016-06-28T12:59:51]i000: Initializing numeric variable 'CHECK_SETUP_BLOCKED' to value '1' | |
[1B68:1E84][2016-06-28T12:59:51]i000: Initializing numeric variable 'SKIP_VSU_CHECK' to value '0' | |
[1B68:1E84][2016-06-28T12:59:51]i000: Initializing numeric variable 'SKIP_PREPARATION' to value '0' | |
[1B68:1E84][2016-06-28T12:59:51]i000: Initializing string variable 'BundleNameShort' to value 'Microsoft .NET Core 1.0.0' | |
[1B68:1E84][2016-06-28T12:59:51]i000: Initializing string variable 'BundleNameSub' to value 'VS 2015 Tooling Preview 2' | |
[1B68:1E84][2016-06-28T12:59:51]i009: Command Line: '-burn.clean.room=C:\Users\ito\Downloads\DotNetCore.1.0.0-VS2015Tools.Preview2.exe' | |
[1B68:1E84][2016-06-28T12:59:51]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\ito\Downloads\D |
This file contains 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; | |
namespace ConsoleApp4 | |
{ | |
using Microsoft.CodeAnalysis; | |
using Microsoft.CodeAnalysis.Text; | |
using Microsoft.CodeAnalysis.Formatting; | |
public class Program | |
{ | |
public static void Main(string[] args) |
This file contains 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; | |
using System.Data; | |
namespace DataReaderUtilities | |
{ | |
public class DictionaryDataReader : IDataReader | |
{ | |
IEnumerable<IDictionary<string, object>> m_Dictionary; |
This file contains 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
This is ApacheBench, Version 2.3 <$Revision: 1528965 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Server Software: Kestrel | |
Server Hostname: localhost | |
Server Port: 10004 | |
Document Path: /Hello/Echo?name=hoge | |
Document Length: 12 bytes | |
Concurrency Level: 10 |
This file contains 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
param([string]$location=$(Get-Location).Path) | |
$parentDir = Split-Path $location -Parent | |
ls -recurse $location ` | |
|where-object {$_.DirectoryName -ne "" -and $_.DirectoryName -ne $null} ` | |
|foreach-object{new-object PSObject -prop @{DirectoryName=[regex]::Replace($_.DirectoryName,"$($parentDir.Replace("\","\\"))[\\]*","");FileName=$_.Name;Version=$_.VersionInfo.ProductVersion;FileLength=$_.Length;LastUpdate=$_.LastWriteTime}} ` | |
|select-object DirectoryName,FileName,FileLength,Version,LastUpdate ` | |
|ConvertTo-Csv -notypeinformation |
This file contains 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
FROM ubuntu:16.04 | |
RUN apt-get update && \ | |
apt-get install -y curl apt-transport-https && \ | |
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \ | |
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | tee /etc/apt/sources.list.d/msprod.list && \ | |
apt-get update && \ | |
ACCEPT_EULA=Y DEBIAN_FRONTEND=noninteractive apt-get install -y mssql-tools unixodbc-dev && \ | |
locale-gen en_US en_US.UTF-8 && \ | |
ln -s /opt/mssql-tools/bin/sqlcmd-13.0.1.0 /usr/bin/sqlcmd && \ |
OlderNewer