Skip to content

Instantly share code, notes, and snippets.

@chilversc
chilversc / DevHost.cs
Last active February 5, 2016 19:49
Automatically reload topshelf service after build
using System;
using System.IO;
using System.Threading;
using System.Diagnostics;
using System.Runtime.InteropServices;
class Program
{
const string exe = "Server.exe";
const string config = exe + ".config";
@phatboyg
phatboyg / ClassMappingExtension.cs
Created October 8, 2012 23:11
Automatonymous NHibernate Saga Mapping
using System;
using System.Linq.Expressions;
using Automatonymous;
using NHibernate.Mapping.ByCode;
public static class AutomatonymousNHibernateExtensions
{
public static void StateProperty<T, TMachine>(this IClassMapper<T> mapper, Expression<Func<T, State>> stateExpression)
where T : class
where TMachine : StateMachine, new()
@nfarina
nfarina / UIView+FrameAdditions.h
Created August 21, 2012 06:40
UIView Frame helper getter/setter category methods
#import <UIKit/UIKit.h>
@interface UIView (SMFrameAdditions)
@property (nonatomic, assign) CGPoint $origin;
@property (nonatomic, assign) CGSize $size;
@property (nonatomic, assign) CGFloat $x, $y, $width, $height; // normal rect properties
@property (nonatomic, assign) CGFloat $left, $top, $right, $bottom; // these will stretch the rect
@end
@jasonlong
jasonlong / massage.md
Created July 6, 2012 13:07
Massage Therapist

Columbus Massage Therapist Recommendation

tl;dr - See https://plus.google.com/117242785508675433416/about?gl=us&hl=en

Recently, someone on Twitter asked for a recommendation for a massage therapist. I ended up emailing the info to that person plus another who happened to see the conversation. Since then, a few more people have asked for the info as well.

Why I Went To a Massage Therapist

I've had lower and upper back pain off and on for over 10 years. I've tried going to chiropractors, orthopedic specialists, and spa-type massage places. Nothing ever works.