This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
var tagIndex = 0; | |
$('span[tag]') | |
.each(function() { | |
var target = $(this); | |
var tag = target.attr('tag'); | |
target.data( | |
'template', | |
$.templates('tag' + tagIndex, '${' + tag + '}')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
demo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
demo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
demo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
one-time step: | |
notepad %userprofile%\.hgrc | |
type in: | |
[ui] | |
username = Steve Godbold <stephen.godbold@readify.net> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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" ); |