Skip to content

Instantly share code, notes, and snippets.

@gothandy
gothandy / perfectgame.cs
Created January 14, 2018 20:12
The perfect game.
[Fact]
public void PerfectGame()
{
Game game = new Game();
for (int i = 0; i < 9; i++)
{
game.AddFrame(new Strike());
}
@gothandy
gothandy / Web.Release.config
Last active August 29, 2015 14:09
Adding web fonts to an Azure Website. Extensions .eot and .woff added via a transform. You need to make changes to both files for this transform to work. Always preview transform to validate.
<?xml version="1.0" encoding="utf-8"?>
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.webServer>
<staticContent>
<remove fileExtension=".eot" xdt:Transform="Insert" />
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" xdt:Transform="Insert" />
<mimeMap fileExtension=".woff" mimeType="application/font-woff" xdt:Transform="Insert" />
@gothandy
gothandy / MvcLayout
Last active August 29, 2015 14:07
Simple mechanism for keeping any dependencies on Sitecore out of your main layout.
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>@ViewBag.Title</title>
</head>
<body>
<h1>Test</h1>
<div>