Skip to content

Instantly share code, notes, and snippets.


Draevin draevin

View GitHub Profile
draevin / PowerLevel10k-custom.psm1
Last active September 8, 2020 18:16
Oh-My-Posh Custom Theme
View PowerLevel10k-custom.psm1
#requires -Version 2 -Modules posh-git
function Write-Theme {
draevin / extensionUtils.cs
Last active May 30, 2018 21:58
Running Collection of Extension Methods
View extensionUtils.cs
//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)