Skip to content

Instantly share code, notes, and snippets.

View temilaj's full-sized avatar
Kaizen

Temi Lajumoke temilaj

Kaizen
View GitHub Profile
@temilaj
temilaj / class-factory.js
Created May 2, 2019 14:36
Classes and factories
class Cat {
constructor() {
this.sound = 'meow';
}
talk() {
console.log(this.sound);
}
}
public class StatusCodeController : Controller
{
[HttpGet("/StatusCode/{statusCode}")]
public IActionResult Index(int statusCode)
{
return View(statusCode);
}
}
@temilaj
temilaj / appsettings.json
Created February 27, 2017 12:55
ASP.NET-core-role-based-authentication user setup in appsettings.json file
{
"ConnectionStrings": {
"DefaultConnection": "Data Source=WebApplication.db"
},
"AppSettings":{
"UserEmail": "johndoe@email.com",
"UserPassword": "P@ssw0rd"
}
}