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 Mvc.Examples | |
{ | |
public class SomeController : Controller | |
{ | |
public IActionResult Post([FromBody]MyModel model) | |
{ | |
// Do something with `model` 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
import { ScreenCap } from "../../helpers/ScreenCap" | |
import { Casper } from "casperjs" | |
export class GitHubSignIn { | |
private readonly OAUTH_AUTHORISATION_FORM = '.oauth-review-permissions form[method=post]'; | |
constructor(private casper: Casper, private screencap: ScreenCap) { } | |
login(username: string, password: string): void { | |
this.casper |
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
param( | |
[Parameter(Mandatory=$true)] | |
[string]$SshKeyFile, | |
[Parameter(Mandatory=$true)] | |
[string]$Location = "westeurope", | |
[string]$ResourceGroup = "k8s-$Location", | |
[string]$ClusterName = "k8s-$Location", | |
[string]$DnsPrefix = "ch360", | |
[int]$MasterCount = 1, | |
[int]$AgentCount = 3, |
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 int WhatDoIDo(int[] numbers) | |
{ | |
return numbers.Count(i => i % 2 == 0) | |
} |
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 global:build() { | |
param( | |
# The Tasks to execute. An empty list runs the | |
# default task, as defined in build.ps1 | |
[string[]] $Tasks = @(), | |
[string] $Configuration = "Release", | |
[string] $BuildNumber = '0' | |
) | |
RestoreBuildLevelPackages |
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 Ai() { | |
this.UP = 0; | |
this.RIGHT = 1; | |
this.DOWN = 2; | |
this.LEFT = 3; | |
this.ORIGIN = | |
this.init = function() { | |
this.move = this.UP; |
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
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
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
2013-05-13 21:44:23.1672 - WARN: *** Detected Unit Test Runner, setting MainThreadScheduler to Immediate *** | |
2013-05-13 21:44:23.1825 - WARN: If we are not actually in a test runner, please file a bug | |
2013-05-13 21:44:23.2136 - ERROR: Couldn't load settings, creating them from scratch | |
EXCEPTION: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\alastair\AppData\Roaming\SaveAllTheTime\settings.json'. | |
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) | |
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) | |
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) | |
at System.IO.StreamReader |