View gist:10523774
#load "sip.csx"
var sip = Sip();
var log = Sip<SipLog>();
View gist:8394574
// this works
var result = session.Query<MemberProfile>().Statistics(out stats).Skip(index).Take(200)
.Select(p => new
InvestorId = p.Id,
SendPushNotification = p.NotificationSubscriberIds.Any()
//this fails, with the following error message:
// Could not understand how to translate 'p.NotificationSubscriberIds.Any()' to a RavenDB query.
View AppSettingsAttribute.cs
[AttributeUsage(AttributeTargets.Interface,AllowMultiple = false)]
public class AppSettingsAttribute : KeyPrefixAttribute, IDictionaryPropertyGetter, IPropertyDescriptorInitializer
public AppSettingsAttribute(string keyPrefix) : base(keyPrefix)
public object GetPropertyValue(IDictionaryAdapter dictionaryAdapter, string key, object storedValue,
PropertyDescriptor property, bool ifExists)
View gist:6384114
public class Foo
public int Id { get; set; }
public Bar Bar { get; set; }
// this is what I refer to as 'FK ID property'
public int BarId { get; set; }
View gist:4034987
public class AppConfigDependencies : IContributeComponentModelConstruction
private readonly ParameterModelCollection parameters;
public AppConfigDependencies(NameValueCollection appSettings)
parameters = new ParameterModelCollection();
foreach (var key in appSettings.AllKeys)
parameters.Add(key, appSettings[key]);

#Manifesto for Agile Software Development

We were in a rush to uncover better ways of developing software. Agile is supposed to be fast, so we did an Agile implementation of Agile and we skipped all the values and focused on the practices. Through this work we have come to value:

Daily Standups over Individuals and Interactions

Demos over Working Software

Planning Meetings over Customer Collaboration

View gist:1858274
Accept-Encoding: gzip
User-Agent: Microsoft-Symbol-Server/6.12.0002.633
Connection: Keep-Alive
Pragma: no-cache
HTTP/1.1 404 Not Found
Date: Sat, 18 Feb 2012 08:39:54 GMT
View gist:1610463
var application = Application.Current as ExpressionApplication;
if (application == null) return;
container.Register(Component.For<IProjectManager>().UsingFactoryMethod(_ => application.Services.GetService<IProjectManager>(), managedExternally: true).LifestyleTransient());
View gist:1238786
say I want to escape C# string: @""
HtmlEncode does:;foo=bar
JavaScript escape is: