Instantly share code, notes, and snippets.

View basic.html
<!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 Plugin.cs
namespace Crm.MultiThreading.Plugin
{
using Microsoft.Xrm.Sdk;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class Plugin : IPlugin
View commit-msg
#!/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
[user]
name =
email =
[log]
decorate = short
[color]
ui = auto
status = auto
diff = auto
[alias]
View .gitignore
#ignore thumbnails created by windows
Thumbs.db
#Ignore files build by Visual Studio
*.obj
*.exe
*.pdb
*.user
*.aps
*.pch
*.vspscc
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();
}