Instantly share code, notes, and snippets.

View basic.html
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>A Basic HTML5 Template For Any Project</title>
<meta name="description" content="A Basic HTML5 Template For Any Project">
<meta name="author" content="SitePoint">
View commit-msg
# Automatically adds branch name and branch description to every commit message.
NAME=$(git branch | grep '*' | sed 's/* //')
DESCRIPTION=$(git config branch."$NAME".description)
TEXT=$(cat "$1" | sed '/^#.*/d')
if [ -n "$TEXT" ]
View .gitconfig
name =
email =
decorate = short
ui = auto
status = auto
diff = auto
View .gitignore
#ignore thumbnails created by windows
#Ignore files build by Visual Studio
View gist:1391331
List<Commit> modificationCommits = new List<Commit>();
string currentSha = startingItemSha;
string currentPath = startingItemPath;
Commit temp = null;
foreach (Commit c in repository.Commits)
if (c.Tree.Any<TreeEntry>(entry => entry.Name == currentPath))
View .vimrc
set nocompatible
set ruler
set showcmd
set nu
set showmode
set nowrap
set guioptions-=T
set guioptions-=r
set guioptions-=L
View gist:1367041
// .NET Singleton
sealed class Singleton
private Singleton() {}
public static readonly Singleton Instance = new Singleton();