View basic.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# 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" ] | |
then |
View .gitconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = | |
email = | |
[log] | |
decorate = short | |
[color] | |
ui = auto | |
status = auto | |
diff = auto | |
[alias] |
View .gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ignore thumbnails created by windows | |
Thumbs.db | |
#Ignore files build by Visual Studio | |
*.obj | |
*.exe | |
*.pdb | |
*.user | |
*.aps | |
*.pch | |
*.vspscc |
View gist:1391331
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
set ruler | |
set showcmd | |
set nu | |
set showmode | |
set nowrap | |
set guioptions-=T | |
set guioptions-=r | |
set guioptions-=L |
View gist:1367041
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// .NET Singleton | |
sealed class Singleton | |
{ | |
private Singleton() {} | |
public static readonly Singleton Instance = new Singleton(); | |
} |