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
0 info it worked if it ends with ok | |
1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe', | |
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', | |
1 verbose cli 'install' ] | |
2 info using npm@1.4.3 | |
3 info using node@v0.10.26 | |
4 verbose node symlink C:\Program Files\nodejs\\node.exe | |
5 warn package.json WebAssets@0.1.0 No README data | |
6 verbose readDependencies using package.json deps | |
7 verbose install where, deps [ 'D:\\Code\\SoC\\Source\\WebAssets', |
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; | |
namespace RedGate.Cef.WebUI.Impl | |
{ | |
/// <summary> | |
/// A simple type to wrap up a JSON string into an object that represents the concept of a JSON string. | |
/// Use this anywhere you have to say "string" but really want to say "JSON". | |
/// </summary> | |
[Serializable] | |
public class Json |
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
Topshelf.HostFactory Error: 0 : An exception occurred creating the host, Topshel | |
f.HostConfigurationException: The service was not properly configured: | |
[Failure] Command Line An unknown command-line option was found: SWITCH: appbase | |
(True) | |
[Failure] Command Line An unknown command-line option was found: ARGUMENT: "C:\t | |
emp\TopShelfVNextIssue" | |
[Failure] Command Line An unknown command-line option was found: ARGUMENT: "Micr | |
osoft.Framework.ApplicationHost" | |
[Failure] Command Line An unknown command-line option was found: SWITCH: configu | |
ration (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
ls |% { pushd $_; ls *.zip |%{ Expand-Archive $_; rm $_} popd } |
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
public ActionResult Record(int id) | |
{ | |
Record record = repository.Load(id); | |
var viewModel = new { record.Id, record.Name, record.Description, record.Url /* etc. */ }; | |
return View(viewModel); | |
} |
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
[TestFixture] | |
public class LeapYearCalculatorAcceptanceTests | |
{ | |
[Test] | |
public void TestThat_IsLeapYear_ShouldReturnTrue_WhenTheGivenYearIsATypicalLeapYear() | |
{ | |
const int typicalLeapYear = 1996; | |
var isLeapYear = LeapYearCalculator.IsLeapYear(typicalLeapYear); |
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
public static bool IsLeapYear(int year) | |
{ | |
return 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
public string GetPrettyPrintedJson(string json) | |
{ | |
dynamic parsedJson = JsonConvert.DeserializeObject(json); | |
return JsonConvert.SerializeObject(parsedJson, Formatting.Indented); | |
} |
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 Get-ScriptDirectory { | |
$invocation = (Get-Variable MyInvocation -Scope 1).Value | |
$script = [IO.FileInfo] $invocation.MyCommand.Path | |
if ([IO.File]::Exists($script)) { | |
return (Split-Path $script.Fullname) | |
} else { | |
return $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
private static readonly IEnumerable<Foo> BaseCollectionOfFoo = new List<Foo> | |
{ | |
new Foo(1), | |
new Foo(2), | |
new Foo(3) | |
}; | |
private static readonly IEnumerable<Foo> AllFoo = new List<Foo>(BaseCollectionOfFoo) | |
{ | |
new Foo(4) |
OlderNewer