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 mcr.microsoft.com/dotnet/core/aspnet:2.2 AS base | |
ENV CORECLR_ENABLE_PROFILING=1 \ | |
CORECLR_PROFILER={36032161-FFC0-4B61-B559-F6C5D41BAE5A} \ | |
CORECLR_NEWRELIC_HOME=/usr/local/newrelic-netcore20-agent \ | |
CORECLR_PROFILER_PATH=/usr/local/newrelic-netcore20-agent/libNewRelicProfiler.so | |
ARG agent_version="8.15.455.0" | |
RUN curl https://download.newrelic.com/dot_net_agent/latest_release/newrelic-netcore20-agent_${agent_version}_amd64.deb -o newrelic-netcore20-agent_${agent_version}_amd64.deb \ | |
&& dpkg -i newrelic-netcore20-agent_${agent_version}_amd64.deb \ |
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
ApplyToEachCA(CNOT(qs[0], _), qs[1..Length(qs)-1]); | |
#line 135 "/home/tatanaka/Documents/git/Microsoft/QuantumKatas/Superposition/Tasks.qs" | |
MicrosoftQuantumCanonApplyToEachCA.Apply((MicrosoftQuantumPrimitiveCNOT.Partial(new Func<Qubit, (Qubit,Qubit)>((_arg1) => (qs[0L], _arg1))), qs?.Slice(new Range(1L, (qs.Length - 1L))))); | |
#line hidden | |
for (i in 1 .. Length(qs) - 1) { | |
CNOT(qs[0], qs[i]); | |
} |
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.Linq; | |
using Microsoft.Diagnostics.Runtime; | |
namespace ClrMDExample | |
{ | |
class Program | |
{ | |
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
apiVersion: image.openshift.io/v1 | |
kind: ImageStream | |
metadata: | |
name: mssql-rhel | |
spec: | |
lookupPolicy: | |
local: false | |
tags: | |
- annotations: null | |
from: |
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
#!/bin/bash | |
# generate-azureconf.sh RESOURCE_GROUP_NAME | |
RGNAME=$1 | |
if [ -z $RGNAME ]; then | |
echo "Usage: $0 RESOURCE_GROUP_NAME" | |
exit 1 | |
fi |
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
distance, origin, destination, origin(lat,lng), destination(lat,lng) | |
=== | |
1151.87063171573 km, 新吉野駅, 吉野駅, (42.778116,143.608543), (34.3767299,135.8535885) | |
926.269856404267 km, 新里駅, 里駅, (36.4186046,139.2377086), (33.284648,129.835746) | |
919.719529416658 km, 新田野駅, 田野駅, (35.275911,140.328568), (31.838311,131.304346) | |
636.839243798352 km, 新加納駅, 加納駅, (35.3994824,136.8247227), (31.876087,131.406364) | |
620.357972559272 km, 新原駅, 原駅, (33.579155,130.508733), (35.126064,136.996969) | |
586.336025143016 km, 新田原駅, 田原駅, (33.6955636,131.0081608), (34.6668698,137.2687324) | |
561.38529328449 km, 新福島駅, 福島駅, (34.695105,135.485644), (37.7542092,140.4596133) | |
523.4865892434 km, 新高島駅, 高島駅, (35.462038,139.626731), (34.683016,133.95789) |
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
$ /opt/dotnet/dotnet run | |
Unhandled Exception: System.InvalidProgramException: Common Language Runtime detected an invalid program. | |
at X.Main2() | |
at ConsoleApp.Program.Main() |
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
[Authorize] | |
public IActionResult File() | |
{ | |
return PhysicalFile(Path.Combine(environment.ContentRootPath, "www", "banner1.svg"), "image/svg+xml"); | |
} |
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
public void ConfigureServices(IServiceCollection services) | |
{ | |
// Add framework services. | |
services.AddDbContext<ApplicationDbContext>(options => | |
options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection"))); | |
services.AddIdentity<ApplicationUser, IdentityRole>() | |
.AddEntityFrameworkStores<ApplicationDbContext>() | |
.AddDefaultTokenProviders(); |
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.Threading.Tasks; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.DataProtection; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Logging; |