Format:
Recent snippets for: Jason Rowe
public static class TimeZoneInfoHelper { public static TimeSpan FindUtcOffsetByTimeZone(TimeZoneInfo timeZone) { var converted = FindCurrentDateTimeByTimeZoneInfo(timeZone); return converted.HasValue ? timeZone.GetUtcOffset(converted.Value) : TimeSpan.Zero; }
63 Views
no comments
<?xml version="1.0" encoding="utf-8"?> <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> <CodeSnippet Format="1.0.0"> <Header> <Title>Nunit Test Class</Title> <Shortcut>ntestc</Shortcut> <Description>Code snippet for a nunit test class</Description> <Author>Jason Rowe</Author> <SnippetTypes> <SnippetType>Expansion</SnippetType>
202 Views
no comments
<?xml version="1.0" encoding="utf-8"?> <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> <CodeSnippet Format="1.0.0"> <Header> <SnippetTypes> <SnippetType>Expansion</SnippetType> </SnippetTypes> <Title>Test Method</Title> <Shortcut>ntestm</Shortcut> <Description>Code snippet for a test method</Description>
198 Views
no comments
//Attempted to convert from http://www.ics.uci.edu/~eppstein/numth/frap.c public static class ContinuedFractions { public static Fraction FindApproximation(double numberToApprox, long maxDenominator) { var result = new Fraction(); long[,] m = new long[2, 2];
145 Views
no comments
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Untitled Page</title> <script type="text/javascript"> //For more info http://www.ics.uci.edu/~eppstein/numth/frap.c function FindApproximation(numberToApprox, maxDenominator)
200 Views
no comments
public partial class Default : Page { protected void Page_Load(object sender, EventArgs e) { MyUserControlNeedsDelegate1.ValidatorFunc = PageValidator; } public ValidationResult PageValidator(int count, string name) {
170 Views
no comments
<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl" xmlns:user="urn:fnord:scripts" > <xsl:output method="text" indent="yes"/> <msxsl:script implements-prefix="user" language="CSharp"> <
