Skip to content

Instantly share code, notes, and snippets.

@masak
masak / explanation.md
Last active November 11, 2025 13:51
How is git commit sha1 formed

(The below text is licensed with CC0, which means that if you want to use or translate it, that is OK by me.)

Ok, I geeked out, and this is probably more information than you need. But it completely answers the question. Sorry. ☺

Locally, I'm at this commit:

$ git show
commit d6cd1e2bd19e03a81132a23b2025920577f84e37
Author: jnthn <[email protected]>

Date: Sun Apr 15 16:35:03 2012 +0200

@JesseKPhillips
JesseKPhillips / dateparse.d
Created October 13, 2011 00:10
std.dateparse braught to use std.datetime
// Written in the D programming language.
/**
* $(RED Deprecated. It will be removed in February 2012.
* Please use std.datetime instead.)
*
* dateparse module.
*
* Copyright: Copyright Digital Mars 2000 - 2009.
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
@JesseKPhillips
JesseKPhillips / gist:774983
Last active September 24, 2015 16:18
Example of callcenter using parrallelfuture
module main;
import core.thread;
import std.algorithm;
import std.conv;
import std.datetime;
import std.parallelism;
import std.random;
import std.range;
import std.stdio;
@JesseKPhillips
JesseKPhillips / callcenter.d
Last active September 24, 2015 16:07
A translation of some code written in Go to demonstrate Goroutines.
/*
* Original Go: http://www.mprescient.com/journal/2011/1/9/concurrency-in-go-a-call-center-tutorial.html
*/
module main;
import core.thread,
std.array,
std.concurrency,
std.conv,