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.Web; | |
using CBC.Radio3.Permalinks.Common; | |
namespace CBC.Radio3.Permalinks.HttpHandlers | |
{ | |
public class PermalinkProcessingHandler : IHttpHandler | |
{ | |
private readonly IPermalinkParser permalinkParser; | |
public PermalinkProcessingHandler() |
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.Text; | |
namespace CBC.Radio3.Commons.Web | |
{ | |
public class WebPath | |
{ | |
/// <summary> | |
/// Takes a parameter list of strings and returns the strings concatenated with a | |
/// preceding '/' character. If the string has a trailing/preceding slash it will | |
/// be removed. Any slashes in the middle of the string will remain. |
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
[Fact(Skip = "Only need this to setup the DB")] | |
public void CreateDatabaseSchemaFromMappingFiles() | |
{ | |
IWindsorContainer container = new WindsorContainer() | |
.Install(BinsorScript.FromFile(TestConfiguration.BinsorConfig)); | |
var cfg = container.Resolve<Configuration>(); | |
var schema = new SchemaExport(cfg); | |
schema.Create(true, true); | |
} |
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
Describe "When installing packages from a packages.config manifest" { | |
$script:chocolatey_nuget_was_called = $false | |
$script:chocolatey_rubygem_was_called = $false | |
$script:chocolatey_webpi_was_called = $false | |
$script:packageName = '' | |
$script:version = '' | |
# content here | |
} |
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
Rakefile is: | |
task :test do | |
sh "env > test.env" | |
end | |
my local env doesn't have RUBYOPT set, but when I run `rake test` I see the following: | |
RUBYOPT=-I/Users/ThoughtWorks/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.1.4/lib -rbundler/setup |
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 | |
for i in {1..90} | |
do | |
num=`printf "%02d" $i` | |
if ! ls das-00${num}* &> /dev/null; then | |
echo missing episode ${num} | |
fi | |
done |
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
require 'rubygems' | |
require 'twitter' | |
$stdout.sync = true | |
def rate_limited | |
begin | |
yield | |
rescue Twitter::Error::TooManyRequests => error | |
sleep error.rate_limit.reset_in + 1 |
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
$here = Split-Path -Parent $MyInvocation.MyCommand.Path | |
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path).Replace(".Tests.", ".") | |
. "$here\$sut" | |
$mockSFtpCode = @" | |
public class MockSFtp { | |
public bool ConnectCalled { get; private set; } | |
public bool DisconnectCalled { get; private set; } | |
public bool IsConnected { get; set; } | |
public string ChangeDirectoryParam { get; private 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
Recipe: sprout-homebrew::cask | |
* directory[/usr/local/Library/Taps] action create[2016-01-02T19:45:57+01:00] INFO: Processing directory[/usr/local/Library/Taps] action create (sprout-homebrew::cask line 3) | |
(up to date) | |
* homebrew_tap[caskroom/cask] action tap[2016-01-02T19:45:57+01:00] INFO: Processing homebrew_tap[caskroom/cask] action tap (sprout-homebrew::cask line 8) | |
(up to date) | |
* package[caskroom/cask/brew-cask] action install[2016-01-02T19:45:57+01:00] INFO: Processing package[caskroom/cask/brew-cask] action install (sprout-homebrew::cask line 10) | |
(up to date) | |
* package[caskroom/cask/brew-cask] action upgrade[2016-01-02T19:45:57+01:00] INFO: Processing package[caskroom/cask/brew-cask] action upgrade (sprout-homebrew::cask line 12) | |
(up to date) | |
* directory[/opt/homebrew-cask/Caskroom] action create[2016-01-02T19:45:58+01:00] INFO: Processing directory[/opt/homebrew-cask/Caskroom] action create (sprout-homebrew::cask line 17) |
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
Wed Feb 14 12:53:38 UTC 2018 |
OlderNewer