Skip to content

Instantly share code, notes, and snippets.

View dotnetchris's full-sized avatar

Chris Marisic dotnetchris

View GitHub Profile
@dotnetchris
dotnetchris / GitForWindowsSetup.md
Last active December 22, 2022 22:23 — forked from dmangiarelli/GitForWindowsSetup.md
How to setup Git for Windows

How to setup Git for Windows

Improve developer's experience inside powershell, adding useful commands like Add-PathVariable. This is optional but recommended to minimize confirmation of every single action you invoke.

First let's update powershell itself (elevated):

iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"
@dotnetchris
dotnetchris / 0_reuse_code.js
Created August 14, 2017 13:35
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@dotnetchris
dotnetchris / 1 - Map Arguments to Properties.cs
Created February 19, 2016 20:53 — forked from bretcope/1 - Map Arguments to Properties.cs
Sigil Object Mapping - Basic Examples
// Runnable from Linqpad 5
// Must install the Sigil nuget package and include the Sigil namespace
void Main()
{
var createSample = GetMapperDelegate();
// try it out
createSample(23, "Hello").Dump();
}
@dotnetchris
dotnetchris / HenriFormatter.cs
Created March 23, 2012 14:07 — forked from atifaziz/HenriFormatter.cs
Updated HenriFormatter from Named Formats Redux
// http://haacked.com/archive/2009/01/14/named-formats-redux.aspx#70485
using System;
using System.Text;
using System.Web;
using System.Web.UI;
namespace StringLib
{
public static class HenriFormatter