Skip to content

Instantly share code, notes, and snippets.

@olivif
olivif / colours.js
Last active December 20, 2015 14:06
node-couleurs windows fix prototype
var styles = {
black: [30, 39],
red: [31, 39],
green: [32, 39],
yellow: [33, 39],
blue: [34, 39],
magenta: [35, 39],
cyan: [36, 39],
white: [37, 39],
gray: [90, 39],
@olivif
olivif / WebAPISetup
Last active October 29, 2016 15:54
Checklist for creating an MVC 5 Web API github project
Checklist for creating an MVC 5 Web API github project
Prereqs
* Visual Studio 2015 Update 3
* .NET Core 1.0.1 - VS 2015 Tooling Preview 2 - https://www.microsoft.com/net/download
1. Create local repo with git init .
2. Create Web API project - https://docs.asp.net/en/latest/tutorials/first-web-api.html
3. Create Web API unit tests project with MsTest - https://docs.microsoft.com/en-us/dotnet/articles/core/testing/using-mstest-on-windows
4. Import Moq nuget package
@olivif
olivif / NetCoreTravisFile
Last active November 2, 2016 22:53
Sample travis.yml file for building and testing a dotnet core app.
language: csharp
solution: .\StarterProject\StarterProject.sln
dist: trusty
sudo: required
mono: none
dotnet: 1.0.0-preview2-003131
script:
- dotnet restore