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
<%@ Page Language="C#" MasterPageFile="~/tixi/Masters/Default.Master" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="FuelAdvance.Galapagos.WebUI.tixi.Home" EnableViewState="False" Title="" %> | |
<%@ Register TagPrefix="tixi" TagName="Step1" Src="~/Components/GettingStarted/Step1/Step1Control.ascx" %> | |
<asp:Content ContentPlaceHolderID="NoFormPlaceHolder" runat="server"> | |
<div id="homepage-content"> | |
<div id="signup-teaser"> | |
<div class="image-panel"> | |
<span class="images"> | |
<img runat="server" | |
src="~/App_Themes/Default/Assets/HomepagePanelTrackDay.jpg" | |
alt="Revving up a day on the track?" |
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
<%@ Register Src="~/Controls/AccountsDashboard.ascx" TagPrefix="app" TagName="dashboard" %> | |
<app:Dashboard runat="server" /> |
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
/// <summary> | |
/// An order independent version of <see cref="Enumerable.SequenceEqual{TSource}(System.Collections.Generic.IEnumerable{TSource},System.Collections.Generic.IEnumerable{TSource})"/>. | |
/// </summary> | |
internal static bool SetEqual<T>(this IEnumerable<T> x, IEnumerable<T> y) | |
{ | |
if (x == null) throw new ArgumentNullException("x"); | |
if (y == null) throw new ArgumentNullException("y"); | |
var objectsInX = x.ToList(); | |
var objectsInY = y.ToList(); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css">html { font-size: 200%; }</style> | |
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js"></script> | |
<script type="text/javascript"> | |
$(function () { | |
$("#find-link").click(function (e) { |
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
@echo off | |
setlocal | |
set tempscript=%temp%\%~n0.%random%.ps1 | |
echo $ErrorActionPreference="Stop" >"%tempscript%" | |
echo ^& "%~dpn0.ps1" %* >>"%tempscript%" | |
powershell.exe -command "& \"%tempscript%\"" | |
set errlvl=%ERRORLEVEL% | |
del "%tempscript%" | |
exit /b %errlvl% |
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
#requires -Version 2 | |
[CmdletBinding()] | |
param ( | |
$VersionIdentifier | |
) | |
$ErrorActionPreference = "Stop" | |
Set-PSDebug -Strict | |
$PSScriptFilePath = (Get-Item $MyInvocation.MyCommand.Path).FullName |
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
namespace TechList | |
{ | |
[TestFixture] | |
public class Luke | |
{ | |
class DemoObject | |
{ | |
public string GroupId { get; set; } | |
public int GroupCount { get; set; } | |
} |
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
#requires -Version 2 | |
[CmdletBinding()] | |
param ( | |
[parameter(Mandatory=$true)] | |
$InputPath | |
) | |
$ErrorActionPreference = "Stop" |
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
void Test() | |
{ | |
new UnitOfWork() | |
.AddWork(SomeMethod, 123.5) | |
.AddWork(SomeOtherMethod, "hello", 123); | |
} | |
void SomeMethod(double something) | |
{ | |
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 }; |
OlderNewer