Skip to content

Instantly share code, notes, and snippets.

View igloo15's full-sized avatar
🏠
Working from home

Michael Tolland igloo15

🏠
Working from home
  • Aptima Inc.
  • Massachusetts
  • 08:09 (UTC -04:00)
View GitHub Profile
@igloo15
igloo15 / rename-function.js
Created September 16, 2020 22:05
Renamer Script for shows
function(index, item) {
var title = "Samurai.Champloo.";
var titleRemoveDots = title.replace(".", " ").replace(".", " ");
var startIndex = item.path.indexOf(title) + 17;
return titleRemoveDots + item.path.substring(startIndex, startIndex+6);
}
<!--The content below is only a placeholder and can be replaced.-->
<div>
<md-toolbar color="primary">
<span><md-icon>mood</md-icon></span>
<span>Yay, Material in {{title}}!</span>
<button md-icon-button [md-menu-trigger-for]="menu">
<md-icon>more_vert</md-icon>
</button>
@igloo15
igloo15 / Program.cs
Created November 7, 2016 15:59
The main entry for program.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using WebServer.Main;
namespace WebServerRunner
{
public class Program
@igloo15
igloo15 / Server.cs
Created November 7, 2016 15:59
Server class for kestrel web server
using Microsoft.AspNetCore.Hosting;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
namespace WebServer.Main
{
public class Server
@igloo15
igloo15 / Startup.cs
Created November 7, 2016 15:58
Startup class for dot net core kestrel
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace WebServer.Main
{
public class Startup
@igloo15
igloo15 / project.json
Last active November 7, 2016 15:58
Project Json for standard Webserver Library
{
"version": "1.0.0-*",
"buildOptions": {
"emitEntryPoint": true
},
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.0.1"
},
"Microsoft.AspNetCore.Mvc": "1.0.0",