Skip to content

Instantly share code, notes, and snippets.

View MIchaelMainer's full-sized avatar

Michael Mainer MIchaelMainer

View GitHub Profile
@MIchaelMainer
MIchaelMainer / .bashrc
Last active December 4, 2016 12:23
Bash setup. Alias for git commands, easy chooser for repos, cd shortcuts, open current repo in browser
# Set the default path.
ppath="/c/repos" #TODO - change to your repo dir
# openInRepoDir() { cd $ppath ; }
###### Alias #####
### Git; this should probably go into the .gitconfig
alias gs='git status -s'
alias cma='git commit -a -m'
alias cm='git commit -m'
alias r='git remote -v'
@davidfowl
davidfowl / Example1.cs
Last active June 19, 2024 16:41
How .NET Standard relates to .NET Platforms
namespace Analogy
{
/// <summary>
/// This example shows that a library that needs access to target .NET Standard 1.3
/// can only access APIs available in that .NET Standard. Even though similar the APIs exist on .NET
/// Framework 4.5, it implements a version of .NET Standard that isn't compatible with the library.
/// </summary>INetCoreApp10
class Example1
{
public void Net45Application(INetFramework45 platform)