Skip to content

Instantly share code, notes, and snippets.

View Icehunter's full-sized avatar

Ryan Wilson Icehunter

View GitHub Profile
#!/bin/bash
# by http://github.com/jehiah
# this prints out some branch status (similar to the '... ahead' info you get from git status)
# example:
# $ git branch-status
# dns_check (ahead 1) | (behind 112) origin/master
# master (ahead 2) | (behind 0) origin/master
git for-each-ref --format="%(refname:short) %(upstream:short)" refs/heads | \
@Icehunter
Icehunter / WrappingDemo.cs
Created November 2, 2012 03:22
Example of wrapping a paragraph every nth character. Example of what I feel is Good/Better code; subjectively.
// WrappingDemo.cs
//
// Created by Ryan Wilson.
using System;
using System.Linq;
using System.Text.RegularExpressions;
namespace WrappingDemoWPF
{