Skip to content

Instantly share code, notes, and snippets.

View draevin's full-sized avatar

Draevin draevin

View GitHub Profile
@draevin
draevin / PowerLevel10k-custom.psm1
Last active September 8, 2020 18:16
Oh-My-Posh Custom Theme
#requires -Version 2 -Modules posh-git
function Write-Theme {
param(
[bool]
$lastCommandFailed,
[string]
$with
)
@draevin
draevin / extensionUtils.cs
Last active May 30, 2018 21:58
Running Collection of Extension Methods
//yeah yeah this isn't a fully formatted .cs file I know
//just put these somewhere, probably with the following:
//using System;
//using System.Linq;
//following datetime exts are good for output from db results, esp. for reporting
public static string ToStringOrNA(this DateTime? dt)
{
if (dt.HasValue)