Skip to content

Instantly share code, notes, and snippets.

View tathamoddie's full-sized avatar

Tatham Oddie tathamoddie

View GitHub Profile
public static void RegisterStyleSheets(this Page page, IEnumerable<string> appRelativePaths)
{
if (page == null) throw new ArgumentNullException("page");
if (page.Header == null) throw new ArgumentException("Page header is unavailable.", "page");
var links = appRelativePaths
.Select(page.ResolveClientUrl)
.Select(p =>
{
var link = new HtmlLink { Href = p };
$(function() {
var tagIndex = 0;
$('span[tag]')
.each(function() {
var target = $(this);
var tag = target.attr('tag');
target.data(
'template',
$.templates('tag' + tagIndex, '${' + tag + '}'));
GET /mahtweets/graph HTTP/1.1
User-Agent: Fiddler
Host: hg01.codeplex.com
HTTP/1.1 502 Bad Gateway
Content-Type: text/html
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 03 Aug 2010 11:58:33 GMT
one-time step:
notepad %userprofile%\.hgrc
type in:
[ui]
username = Steve Godbold <stephen.godbold@readify.net>
### TFS 2008 can't copy a file without breaking the history, which just baffles me ###
### This is how Hg does it: ####
D:\temp>mkdir HgCopyTest
D:\temp>cd HgCopyTest
D:\temp\HgCopyTest>hg init
D:\temp\HgCopyTest>echo Hello there > A.txt
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#container
{
width: 900px;
overflow: hidden;
padding: 0;
background: #000;
//An Array of dataTables to to them from other controls
var dataTables = new Array ( );
function CreateDateTable ( controlID, headers, initialDataSource )
{
//Retrieve Table Properties to pass
//from the Parent Control to the rendered Table (DIV)
var renderedControl = document.getElementById ( controlID );
var tableCaption = renderedControl.getAttribute ( "_Caption" );