Skip to content

Instantly share code, notes, and snippets.

View daerogami's full-sized avatar

Mark Clark daerogami

View GitHub Profile
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.SpaServices.AngularCli;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.OpenApi.Models;
namespace MyCady.Web
var startTime, lapTimes, endTime;
function start() {
startTime = new Date();
lapTimes = [];
};
function getPreviousTime(){
let laps = lapTimes.length;
return laps > 1 ? lapTimes[laps-2] : startTime;
@daerogami
daerogami / Steam.log
Created April 22, 2018 18:51
Log of font errors for steam on Linux Mint 18.3
Running Steam on linuxmint 18.3 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Installing breakpad exception handler for appid(steam)/version(1522709999)
Installing breakpad exception handler for appid(steam)/version(1522709999)
Installing breakpad exception handler for appid(steam)/version(1522709999)
Gtk-Message: Failed to load module "gail"
Gtk-Message: Failed to load module "atk-bridge"
Installing breakpad exception handler for appid(steam)/version(1522709999)
../vgui_surfacelib/linuxfont.cpp (402) : Assertion Failed: Unable to find font named Arial
@daerogami
daerogami / DomainClasses.cs
Last active April 5, 2018 22:55
Example of a Repository pattern with a filter-able and order-able Get() method
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
//Example classes for repository (Domain)
namespace SomeRepoExample
{
public class Foo
{
@daerogami
daerogami / boe.town.cpp.partial
Created February 11, 2018 21:40
Refactored erase_out_specials
void erase_out_specials() {
for(short i = 0; i < 2; i++) {
for (short j = 0; j < 2; j++) {
if (!quadrant_legal(i, j)) continue;
auto& sector = get_sector_ptr(univ.party.outdoor_corner.x + i, univ.party.outdoor_corner.y + j);
erase_hidden_towns(sector, i, j);
erase_completed_specials(sector);
}