Skip to content

Instantly share code, notes, and snippets.

@robertpainsi
robertpainsi / commit-message-guidelines.md
Last active May 15, 2024 19:48
Commit message guidelines

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
@sandcastle
sandcastle / install-teamcity.md
Last active December 7, 2023 18:02
Install TeamCity 9.0.3 on Ubuntu with Nginx
@joeriks
joeriks / RoslynDynamicCompilation.cs
Created December 28, 2012 07:44
Add a piece of dynamically compiled code in memory with the help of Roslyn. (After this the Greeter class will be available and can be run from example from the immediate window in visual studio).
public static void AddGreeter()
{
AddInmemory("Greeter", @"using System;
class Greeter
{
public string Greet()
{
return ""Hello World"";
}
@joeriks
joeriks / ApiAreaRegistration.cs
Created January 19, 2012 14:34
Restful editable list with knockout and mvc3
public override void RegisterArea(AreaRegistrationContext context)
{
context.MapRoute("RestfulControllers", "api/{controller}", new
{
controller = "Home",
action = RestfulActionAttribute.RestfulActionName,
id = UrlParameter.Optional
});
context.MapRoute("RestfulControllers_Id", "api/{controller}/{id}", new