Skip to content

Instantly share code, notes, and snippets.

View scottaddie's full-sized avatar
💭
.NET 💜 Azure

Scott Addie scottaddie

💭
.NET 💜 Azure
View GitHub Profile
@scottaddie
scottaddie / Class1.cs
Created September 29, 2016 01:38
The class before reformatting was applied
namespace MessyClassLibrary {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class Class1 {
public Class1() {
}
@scottaddie
scottaddie / Class1.cs
Created September 29, 2016 01:34
The reformatted version of the class
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MessyClassLibrary
{
public class Class1
{
@scottaddie
scottaddie / project.json
Created September 20, 2016 02:22
dependencies section in project.json file
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.0.1",
"type": "platform"
},
"Microsoft.AspNetCore.Diagnostics": "1.0.0",
"Microsoft.AspNetCore.Mvc": "1.0.1",
"Microsoft.AspNetCore.Razor.Tools": {
"version": "1.0.0-preview2-final",
"type": "build"
@scottaddie
scottaddie / Startup.cs
Created September 20, 2016 02:19
Startup.cs Configure method in new ASP.NET Core app created with "Web Application" template
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
loggerFactory.AddConsole(Configuration.GetSection("Logging"));
loggerFactory.AddDebug();
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseBrowserLink();
}
@scottaddie
scottaddie / catalog.json
Last active July 30, 2016 19:27
.bootstraprc JSON schema entry in the catalog.json file
{
"$schema": "http://json.schemastore.org/schema-catalog",
"version": 1.0,
"schemas": [
{
"name": "babelrc.json",
"description": "Babel configuration file",
"fileMatch": [ ".babelrc" ],
"url": "http://json.schemastore.org/babelrc"
},
@scottaddie
scottaddie / package.json
Created July 20, 2016 02:10
napa-generated package.json file for signalr-bower GitHub repository
{
"name": "signalr",
"version": "0.0.0",
"description": "-",
"repository": {
"type": "git",
"url": "-"
},
"readme": "-",
"_napaResolved": "https://github.com/signalr/bower-signalr/archive/v2.2.0.zip"
@scottaddie
scottaddie / package.json
Created July 19, 2016 02:34
napa script in package.json
"scripts": {
"install": "napa signalr/bower-signalr#v2.2.0:signalr"
}
@scottaddie
scottaddie / package.json
Last active July 19, 2016 02:35
napa configuration in package.json
"napa-config": {
"cache": true,
"cache-path": "./.napa-cache",
"log-level": "info"
}
@scottaddie
scottaddie / package.json
Last active July 19, 2016 02:45
completed package.json with napa configuration
{
"name": "test_app",
"version": "1.0.0",
"description": "Sample app demonstrating SignalR JS client installation with napa",
"author": "Scott Addie",
"private": true,
"license": "MIT",
"scripts": {
"install": "napa signalr/bower-signalr#v2.2.0:signalr"
},
@scottaddie
scottaddie / settings.json
Last active October 8, 2016 19:28
Override cmd.exe with PowerShell in VS Code
{
"terminal.external.windowsExec": "powershell"
}