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
function build($pathToSolution, $configuration) { | |
if (-not $configuration) { | |
$configuration = "Debug" | |
} | |
& (Join-Path ${env:ProgramFiles(x86)} "MSBuild\14.0\Bin\msbuild.exe") /p:Configuration=$configuration /v:minimal $pathToSolution | |
} |
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.Diagnostics; | |
namespace ClassLibrary1 | |
{ | |
public static class Retry | |
{ | |
public static void Until(Action stuffToRetry, Func<bool> stopWhenTrue, TimeSpan? timeToRetry = null) | |
{ | |
var internalTimeToRetry = timeToRetry ?? 5.Seconds(); |
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
Powershell - Lesson 1 | |
Configuration: | |
Powershell profile | |
Import-Module Grc | |
(Test it w/ `Get-GrcTenants`) | |
Syntax: | |
Variable declaration $ | |
Powershell variables ( $true, $null, $false, etc ) | |
Control Structures | |
Conditionals (-eq, -ne, -contains, etc) |
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
// ==UserScript== | |
// @name Pivotal Biggify | |
// @description Makes Pivotal usable on a big board | |
// @include https://*.pivotaltracker.com/* | |
// ==/UserScript== | |
if (location.hostname == 'www.pivotaltracker.com') { | |
setInterval(function() { | |
document.getElementById('header').style.display = 'none'; | |
document.getElementById('controlPanel').style.display = 'none'; |
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
[Test] | |
public void It_should_play() { | |
int completeAttestations = 38; | |
int totalAttestations = 84; | |
Expect(Math.Round((double)((completeAttestations * 100) / totalAttestations)), EqualTo(Math.Round(completeAttestations * 100d / totalAttestations))); | |
var actualUnrounded = (double)((completeAttestations * 100) / totalAttestations); | |
var expectedUnrounded = completeAttestations * 100d / totalAttestations; | |
Expect(actualUnrounded, EqualTo(expectedUnrounded), "Actual: <{0}>, Expected: <{1}>".FormatWith(actualUnrounded, expectedUnrounded)); |
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
;Hide the script's tray icon | |
#NoTrayIcon | |
;Use the same icon of console.exe for the script's tray icon (note that "#NoTrayIcon" hide the default one and any other icon, you must delete or coment "#NoTrayIcon" in order to show this icon in taskbar) | |
:Menu, Tray, Icon, console.exe, 1 | |
; Launch console if necessary; hide/show on Win+` | |
;You can coustomise this by yourself #=Win, !=Alt, ^=Ctrl, +=Shift, see (http://www.autohotkey.com/docs/Hotkey.htm - http://www.autohotkey.com/docs/KeyList.htm ) | |
#`:: | |
DetectHiddenWindows, on |
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.Web; | |
using System.Web.Mvc; | |
using Moq; | |
using NUnit.Framework; | |
using TNW.Reporting.Domain.Common; | |
using TNW.Reporting.Domain.Entities.User; | |
using TNW.Reporting.Domain.Managers; | |
using TNW.Reporting.Test.Common; | |
using TNW.Reporting.Web.Controllers; |
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.Mvc; | |
using Moq; | |
using NUnit.Framework; | |
using Specs.Core; | |
using Specs.Reporting.Mixins; | |
using TNW.Common.nHibernate; | |
using TNW.Reporting.Web.Controllers; | |
namespace Specs.Reporting.Web.Controllers | |
{ |
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
git config --global alias.slog "log -n 10 --format=format:'%Creset%an %Cgreen%ar:%Creset%s %Cred%h'" | |
git config --global alias.ci "!git add -A && git commit" | |
git config --global alias.tracking "for-each-ref --format='%(refname:short) <- %(upstream:short)' refs/heads" | |
git config --global alias.s "status --short" |
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
tracking = for-each-ref --format='%(refname:short) <- %(upstream:short)' refs/heads |
NewerOlder