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
//You'll have to run this example in LinqPad as a C# program. | |
//Or put a class around the two global methods and change .Dump() calls to Console.WriteLine | |
void Main() | |
{ | |
var frm = new Form1(); | |
frm.Controls[0].KeyPress += keypressed_inMain; | |
frm.ShowDialog(); | |
} |
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
// <copyright file="SlowLoadableComponent.cs" company="WebDriver Committers"> | |
// Copyright 2007-2011 WebDriver committers | |
// Copyright 2007-2011 Google Inc. | |
// Portions copyright 2011 Software Freedom Conservancy | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Diagnostics; | |
public class DefaultPageObject : LoadableComponent<DefaultPageObject> | |
{ | |
readonly IWebDriver driver; |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Diagnostics; | |
using OpenQA.Selenium; | |
using OpenQA.Selenium.Support.PageObjects; | |
using OpenQA.Selenium.Support.UI; | |
using Selenium.ExtJs.Support.Locators; |
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
select top 3 | |
OH.SalesOrderID, | |
OH.CustomerId, | |
OH.SalesOrderNumber, | |
OH.Status | |
from Sales.SalesOrderHeader OH | |
where | |
OH.CustomerID = @customer_id | |
and OH.SalesOrderID <> @current_sales_id | |
order by OH.OrderDate |
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 FillOtherOrdersSection() { | |
GetOtherOrders(); //Calls stored procedure to fill _otherOrders | |
foreach (var otherOrder in _otherOrders) { | |
if (string.IsNullOrEmpty(otherOrder.Status)) { | |
status = ""; | |
} else { | |
status = " - " + otherOrder.Status; | |
} | |
MakeOrderLink(otherOrder); | |
} |
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 FillOtherOrdersSection(int maxOtherOrders) { | |
GetOtherOrders(maxOtherOrders); //Calls stored procedure to fill _otherOrders | |
foreach (var otherOrder in _otherOrders) { | |
if (string.IsNullOrEmpty(otherOrder.Status)) { | |
status = ""; | |
} else { | |
status = " - " + otherOrder.Status; | |
} | |
MakeOrderLink(otherOrder); | |
} |
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
--@max_other_orders is a parameter to stored proc | |
select top (@max_other_orders) | |
OH.SalesOrderID, | |
OH.CustomerId, | |
OH.SalesOrderNumber, | |
OH.Status, | |
count(*) over(partition by OH.CustomerId) as OtherOrdersCount | |
from Sales.SalesOrderHeader OH | |
where | |
OH.CustomerID = @customer_id |
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
#!/bin/bash | |
# | |
# git-svn-diff originally by (http://mojodna.net/2009/02/24/my-work-git-workflow.html) | |
# modified by mike@mikepearce.net | |
# modified by aconway@[redacted] - handle diffs that introduce new files | |
# | |
# Generate an SVN-compatible diff against the tip of the tracking branch | |
# Get the tracking branch (if we're on a branch) | |
TRACKING_BRANCH=`git svn info | grep URL | sed -e 's/.*\/branches\///'` |
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
class Foo { | |
static baseTime: Date; | |
static constructor() { | |
Foo.baseTime = new Date(); | |
Foo.baseTime.setMilliseconds(0); | |
} | |
} |
OlderNewer