Skip to content

Instantly share code, notes, and snippets.

View timheuer's full-sized avatar
🚴‍♂️
https://twitter.com/timheuer

Tim Heuer timheuer

🚴‍♂️
https://twitter.com/timheuer
View GitHub Profile
{
"image": "mcr.microsoft.com/dotnet/sdk:7.0",
"extensions": [
"ms-dotnettools.csharp"
],
"postCreateCommand": "dotnet restore",
"forwardPorts": [
5163,
7105
],
@timheuer
timheuer / WANT.yaml
Created November 2, 2022 04:20
what i want
on: [push, pull_request, workflow_dispatch]
branches:
- main
paths-ignore:
- '**/*.md'
- '**/*.gitignore'
- '**/*.gitattributes'
@timheuer
timheuer / Dockerfile
Created October 28, 2022 02:11
blazor-front-end-container
FROM nginx:latest AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["BlazorApp47/BlazorApp47.csproj", "BlazorApp47/"]
RUN dotnet restore "BlazorApp47/BlazorApp47.csproj"
COPY . .
docker run --rm -v $(pwd):/entrypoint.sh:/script/entrypoint.sh debian /script/entrypoint.sh
const command1 = 'extension.command1';
const command1Handler = () => {
};
const command2 = 'extension.command2';
const command2Handler = () => {
};
context.subscriptions.push(
commands.registerCommand(command1, command1Handler),
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"package": "npm run clean && vsce package",
"clean": "rimraf ./dist ./out"
},
- name: Add GPR Source
run: dotnet nuget add source --username ${{ secrets.GPR_USERNAME }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name GPR ${{ secrets.GPR_URI }}
- name: Push to GitHub Packages
run: dotnet nuget push **/*.nupkg -s "GPR" --skip-duplicate
{
"title": "JSON schema for the Visual Studio LaunchSettings.json file.",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"definitions": {
"profile": {
"type": "object",
"allOf": [ { "$ref": "#/definitions/profileContent" } ],

Test Results - ClassLibrary8 Test Results

Expand the following summaries for more details:

Duration: 0.759741 seconds

| Times | |

// See https://aka.ms/new-console-template for more information
using System.Net.Http.Json;
Console.WriteLine("Hello, World!");
HttpClient http = new();
var customers = await http.GetFromJsonAsync<List<Customer>>("https://excel2json.io/api/share/dcb51ae600934ecf93c02c9ffcda3c6f");
foreach (var item in customers)
{