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 Utilities | |
{ | |
public class QueryStringBuilder : Dictionary<string, string> | |
{ | |
public string Generate() | |
{ | |
if (Count == 0) return string.Empty; | |
return "?" + string.Join("&", GenerateSegments()); | |
} |
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
routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.([iI][cC][oO]|[gG][iI][fF])(/.*)?" }); |
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
<html> | |
<head> | |
<style type="text/css"> | |
* { visibility: hidden } | |
h1 { visibility: visible } | |
</style> | |
</head> | |
<body> |
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
<html> | |
<style type="text/css"> | |
div { float: right } | |
* { float: none } | |
</style> | |
<body> | |
<div class="floatright">float right</div> | |
<p>I'm defined under the right floated right div</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
#Add this line to development.rb to shut up ActiveRecord | |
ActiveRecord::Base.logger = Logger.new('/dev/null') |
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
System\\CurrentControlSet\\Control\\Keyboard Layout |
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
This is an example of the type of domain syntax I'd want in a WPF UI automation testing feature: | |
Given the default user exists | |
When I enter "daniel" in the username textbox | |
And I enter "pass" in the password textbox | |
And I click the authenticate button | |
Then I should see the authentication panel | |
And the border of the username textbox should be red |
OlderNewer