Skip to content

Instantly share code, notes, and snippets.

View tarwn's full-sized avatar
🌮
Mm, taco

Eli Weinstock-Herman tarwn

🌮
Mm, taco
View GitHub Profile
using NUnit.Framework;
using System.Text.RegularExpressions;
namespace blah
{
[TestFixture]
public class RegexTests
{
[TestCase("111111", true, Description = "Exact match")]
[TestCase("a11111", false, Description = "Letter present")]

Keybase proof

I hereby claim:

  • I am tarwn on github.
  • I am tarwn (https://keybase.io/tarwn) on keybase.
  • I have a public key ASAM_xZ__kGGhDVJsBBNCSR6EqRsVbOCAV-ybLlJAWw5NAo

To claim this, I am signing this object:

@tarwn
tarwn / BuildWarningReportGenerator.ps1
Created May 31, 2016 23:01
Powershell script for TeamCity build warnings
Param
(
[parameter(Mandatory=$true)][string]
$BuildLogPath,
[parameter(Mandatory=$true)][string]
$BuildCheckoutDirectoryPath,
[parameter()][string]
$BuildArtifactRepositoryUrl
@tarwn
tarwn / MvcMusicStoreSmokeTest.vbs
Created February 18, 2015 11:33
Smoke Test script from the MvcMusicStore ContinuousDelivery posts on LessThanDot
Dim url, expVersion, outputPath
Dim testResults
url = WScript.Arguments(0)
expVersion = WScript.Arguments(1)
outputPath = Wscript.Arguments(2)
'url = "http://192.168.173.57/MVCMusicStore_SmokeTest/"
'expVersion = "38"
@tarwn
tarwn / RAINBOWlog.js
Created March 13, 2014 02:08
Awesomify-er your console.log - extended from https://gist.github.com/LeaVerou/9518902
(function(){
var log = console.log;
console.log = function(str) {
var css = 'background-image: url("http://fc07.deviantart.net/fs70/f/2013/090/3/5/ocs____seine_unicorn_sprite_by_onisuu-d5zuuax.gif"), linear-gradient(to right, red, yellow, lime, aqua, blue, fuchsia, red); background-repeat: no-repeat, no-repeat; padding-left: 20px; color: white; font-weight: bold; font-size: 12pt; text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;';
var args = Array.prototype.slice.call(arguments);
args[0] = '%c ' + args[0];
args.splice(1,0,css);
return log.apply(console, args);
}
@tarwn
tarwn / CommandExecutor
Created February 22, 2013 13:28
This file has the original Bad C# CommandExecutor, a good one, and a good one using the same names as you used for the VB version. Original tests are at bottom, with extra set for the VBish CommandExecutor
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ChrissieGist5012518
{
public class BadCommandExecuter : ICommandExecuter
{