Skip to content

Instantly share code, notes, and snippets.

Avatar
🐛
Breeding bugs

kalle (jag) jilleJr

🐛
Breeding bugs
View GitHub Profile
@jilleJr
jilleJr / README.md
Last active Nov 9, 2020
JSON/YAML schema for .wharf-ci.yml files
View README.md

The language server from Red Hat, that most editors use to have YAML syntax and intellisense, has support for JSON schemas.

This file is an attempt on such a schema. Would be nice to autogenerate these in the future, but having it at all is a nice first step. We might want to move this into the https://gitlab.dgc.local/tools/wharf-project project group, and optionally deploy and version this together with the https://gitlab.dgc.local/tools/wharf-project/cmd project...

How to use in Visual Studio Code

  1. Install the "YAML" extension (id: redhat.vscode-yaml, link: https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml)

  2. Add the following to your user settings:

View Prompts.fs
module Koffee.Prompts
open VinylUI
type ModifierKeys = System.Windows.Input.ModifierKeys
type Key = System.Windows.Input.Key
module ClosablePrompt =
let closePrompt handleEvt (model: MainModel) =
handleEvt()
View Issue63.cs
using System;
using System.Collections.Generic;
using System.Reflection;
using Newtonsoft.Json;
using Newtonsoft.Json.Utilities;
using NUnit.Framework;
using UnityEngine.Scripting;
namespace Tests
{
@jilleJr
jilleJr / README.md
Created Mar 16, 2020
Visual Studio Developer PowerShell in Windows Terminal
View README.md

Just a small profile template to get the Visual Studio Developer command prompt environment, but in PowerShell, but in the Windows Terminal. Cake on cake 🍰

Profile installation

Add the following profile to your Windows Terminal profiles.json file.

Old profiles syntax

@jilleJr
jilleJr / Get-AssemblyInfo.ps1
Last active Jan 6, 2020
Assembly describer for powershell
View Get-AssemblyInfo.ps1
# Source: https://gist.github.com/jilleJr/66c3bdddf2c60c0dcb5f9cb21cb6a19f
function Get-AssemblyInfo {
param (
[Parameter(Mandatory, ValueFromPipeline)]
[ValidateNotNullOrEmpty()]
[System.IO.FileInfo]
$Path
)