Skip to content

Instantly share code, notes, and snippets.

View benrick's full-sized avatar
🏠
Working from home

Brendan Enrick benrick

🏠
Working from home
View GitHub Profile
@benrick
benrick / Jekyll\blogml.rb
Last active September 23, 2022 00:12 — forked from eduncan911/Octopress\blogml.rb
Jekyll BlogML.xml importer
# BlogML import script originally sourced from:
# https://github.com/philippkueng/philippkueng.github.com/tree/30ef1570f06d33938b18d5eee7767d6641b9a779/source/_import
# Best post I could find about how to use it was here:
# http://philippkueng.ch/migrate-from-blogengine-dot-net-to-jekyll.html
#
# how to install
# --------------
# mkdir source/_importer
# cp blogml.rb to the source/_importer/ you created above
# cp your BlogML.xml to the same source/_importer/ directory
@benrick
benrick / CachedAlbumRepository.cs
Created March 19, 2016 04:34
Cached Repository Example - CachedAlbumRepository
public class CachedAlbumRepository : IAlbumRepository
{
private readonly IAlbumRepository _albumRepository;
public CachedAlbumRepository(IAlbumRepository albumRepository)
{
_albumRepository = albumRepository;
}
private static readonly object CacheLockObject = new object();