Skip to content

Instantly share code, notes, and snippets.

View IEvangelist's full-sized avatar
:octocat:
Coding for a better world 🤓

David Pine IEvangelist

:octocat:
Coding for a better world 🤓
View GitHub Profile
namespace IEvangelist.CSharper.Calculator
{
public interface ICalculator<T>
{
T Add(T leftOperand, T rightOperand);
T Subtract(T leftOperand, T rightOperand);
T Multiply(T leftOperand, T rightOperand);
T Divide(T leftOperand, T rightOperand);
}
}
{
"version": "1.0.0-*",
"description": "IEvangelist.CSharper.CalculatorTests Class Library",
"authors": [ "David Pine" ],
"dependencies": {
"IEvangelist.CSharper.Calculator": "1.0.0-*",
"xunit": "2.1.0",
"xunit.runner.dnx": "2.1.0-rc1-build204"
},
"commands": {
{
"projects": [ "src", "test" ],
"sdk": {
"version": "1.0.0-rc1-update1"
}
}
@IEvangelist
IEvangelist / chutzpah.json
Last active February 3, 2016 17:29
The latest chutzpah.json feature
{
"Framework": "jasmine",
"TestHarnessReferenceMode": "AMD",
"Tests": [
{
"Path": "wwwroot/app",
"Includes": [ "*.spec.js" ]
}
],
"References": [
public void Configure(IApplicationBuilder app,
IHostingEnvironment env,
ILoggerFactory loggerFactory)
{
loggerFactory.AddConsole(Configuration.GetSection("Logging"));
loggerFactory.AddDebug();
if (env.IsDevelopment())
{
app.UseBrowserLink();
public void ConfigureServices(IServiceCollection services)
{
services.AddGlimpse();
services.AddMvc();
}
@{
ViewData["Title"] = "Angular 2";
}
<app class="container" style="display: block;">Loading...</app>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"]</title>
<environment names="Development">
<!-- Css -->
<link rel="stylesheet" asp-href-include="~/css/*.css">
@using WebApplication1
@addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"
using System;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc;
namespace WebApplication1.Controllers
{
[Route("api/[controller]")]
public class RandomController : Controller
{