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 calculatebonus( employee, currentsalary ) { | |
var bonus = 0; | |
switch( employee.ReviewResult ) { | |
case "Good": | |
return 0.025 * currentsalary; | |
case "Great": | |
return 0.04 * currentsalary | |
case "InvestementBanker": | |
return 2 * currentsalary; | |
} |
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.Dynamic; | |
using System.Linq; | |
using System.Web.Mvc; | |
namespace MvcApplication1.Controllers | |
{ | |
public class SmokeTestController : Controller | |
{ | |
private readonly Func<SmokeTestResult>[] smokeTests; |
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
<!-- | |
*********************************************************************************************** | |
Microsoft.Web.Publishing.targets | |
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | |
created a backup copy. Incorrect changes to this file will make it | |
impossible to load or build your web deploy projects from the command-line or the IDE. | |
This file defines the steps in the standard build process to deploy web application projects. |
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
node_modules |
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
wrap = (sent, col) -> | |
result = '' | |
if sent.length <= col | |
result = sent | |
else | |
space = sent.substring(0,col).lastIndexOf(' ') | |
wrapline = (sent, stop, skip) -> | |
sent.substring(0,stop) + '\n' + wrap(sent.substring(stop+skip),col) |
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 start-host($root) { | |
$iisexpress = "$env:ProgramFiles\\IIS Express\\iisexpress.exe" | |
if (!(test-path $iisexpress)) { | |
write-error "Unable to locate IIS Express at $iisexpress" | |
return | |
} | |
$approot = resolve-path $root |
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
Refactoring done earlier didn't execute acceptance tests. This makes me wonder why we even have acceptance tests. The acceptance tests (and the bug they surfaced) are fixed. Ugh. Professionalism people. Please. |
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 ClassLibrary3 | |
{ | |
using System.Diagnostics; | |
using Xunit; | |
public class CombiningEnums | |
{ | |
[Fact] | |
public void EnumsCanBeXored() |
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('panda',function(){ | |
it('scalene',function(){ | |
expect(classify(1,2,3)).toBe('scalene'); | |
}); | |
it('isosceles', function() { | |
expect(classify(2,2,3)).toBe('isosceles'); | |
expect(classify(1,2,2)).toBe('isosceles'); | |
expect(classify(2,1,2)).toBe('isosceles'); | |
}); |
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
nodeProcessCommandLine: "node_modules/coffee-script/bin/coffee app.coffee" |