Skip to content

Instantly share code, notes, and snippets.

View tclem's full-sized avatar
💭
Parsing and analyzing all of the source code.

Timothy Clem tclem

💭
Parsing and analyzing all of the source code.
View GitHub Profile
using System.Diagnostics;
using System.Threading;
namespace ErlanCompetition
{
internal class Program
{
#region private
private static void Main()
@tclem
tclem / file1.txt
Created April 16, 2011 00:17
add a file
this is a file
//hello world
//hello world
<!DOCTYPE html>
<html>
<head>
<title>Histogram</title>
<script type="text/javascript" src="../../d3.js"></script>
<script type="text/javascript" src="../../d3.layout.js"></script>
<script type="text/javascript" src="pseudoMathStats.js"></script>
<script type="text/javascript" src="lhc.js"></script>
<style type="text/css">
@tclem
tclem / libgit2sharp.cs
Created March 28, 2011 16:18
API design thoughts for libgit2sharp
using (var repo = new Repository("path\to\repo.git"))
{
// Object lookup
var obj = repo.Lookup("sha");
var commit = repo.Lookup<Commit>("sha");
var tree = repo.Lookup<Tree>("sha");
var tag = repo.Lookup<Tag>("sha");
// Rev walking
foreach (var c in repo.Commits.Walk("sha")) { }