Skip to content

Instantly share code, notes, and snippets.

View breyed's full-sized avatar

Edward Brey breyed

View GitHub Profile
@breyed
breyed / BirthdayMainView.swift
Created July 6, 2023 01:41
Aaron 18th birthday
import SwiftUI
struct ContentView: View {
@State private var hex = false
@State private var binary = false
var body: some View {
VStack(spacing: 60) {
Text("Happy birthday, Aaron!\n" + "Choose your present.").font(.largeTitle).multilineTextAlignment(.center)
@breyed
breyed / ReopeningTimeline.md
Last active May 28, 2020 17:57
Sheboygan County Reopening Timeline

CDC Reopening Timeline for Sheboygan County

Phase three details

  • Employers have unrestricted staffing (vs. encouraging telework in phases one and two)
  • Large venues can operate under limited physical distancing (vs. strict in phase one and moderate in phase two)
  • Gyms can use standard sanitation protocols (vs. strict distancing and sanitation in phases one and two)
  • Bars may operate with increased standing room occupancy (vs. diminshed in phase two)
  • Non-essential travel is unresticted (vs. minimized in phase one)
  • Vulnerable individuals can resume public interactions (vs. shelter in place in phases one and two)
@breyed
breyed / Birx-briefing-2020-04-16.md
Last active April 20, 2020 10:36
Dr. Birx, Coronavirus Task Force in Press Briefing, 4/16/20

This is a very important slide. It talks about the gatekeeping — on the gatekeeping criteria to moving into phase one. It’s very much related to what you just saw about influenza-like illness. And the United States has been tracking influenza-like illnesses through the Centers of Disease Control for years.

Both the state and public health officials are used to watching this, county health officials are used to watching it, and frankly, every family around the United States knows how to access this on the CDC website in order to get update — up-to-date information to the communities.

It also looks at a syndromic emergency room-type visits — again, housed at the CDC — and really is our surveillance program that can be utilized for a lot of different illnesses, but in this case, will be utilized for r

@breyed
breyed / ReproNestedEntityIgnored.cs
Created January 5, 2019 18:21
Repro: Nested entity silently ignored if relationship not configured
#define FIRSTRUN
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Diagnostics;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
namespace EfBug
@breyed
breyed / gist:ffe26c10777c372986fb
Created April 22, 2015 00:47
TFS Get All from solution parent
<UserSettings>
<ApplicationIdentity version="12.0"/>
<ToolsOptions/>
<Category name="Environment_Group" RegisteredName="Environment_Group">
<Category name="Environment_ExternalTools" Category="{E8FAE9E8-FBA2-4474-B134-AB0FFCFB291D}" Package="{DA9FB551-C724-11d0-AE1F-00A0C90FFFC3}" RegisteredName="Environment_ExternalTools" PackageName="Visual Studio Environment Package">
<ExternalTools>
<UserCreatedTool>
<Arguments>get</Arguments>
<CloseOnExit>true</CloseOnExit>
<Command>tf.exe</Command>
@breyed
breyed / treasure-island-words
Created August 13, 2014 17:36
Treasure Island Words
abominable
account
admiral
admire
afraid
afternoon
agreeable
alarm
anger
annoyance
@breyed
breyed / CheckedOuter
Created May 19, 2014 14:26
Faster checked arithmetic (with outer loop)
using System;
using System.Diagnostics;
class Program
{
static void Main(string[] args)
{
var s = new Stopwatch();
s.Start();
var outerSum = 0;
@breyed
breyed / CheckedArithmetic
Created May 19, 2014 12:10
Why is checked arithmetic in .NET sometimes faster than unckecked?
// Code for http://stackoverflow.com/q/23736786/145173
using System;
using System.Diagnostics;
class Program
{
static void Main(string[] args)
{
var s = new Stopwatch();
@breyed
breyed / gist:6392793
Created August 30, 2013 18:19
Cheese Finder
using HtmlAgilityPack;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CheeseFinder
{
@breyed
breyed / gist:6089195
Created July 26, 2013 14:14
C++ LINQ copy constructor demo. This is a modified version of CppLinq.Mini.cpp to include a call to `first` in [mrage__visual_cpp_bug_repro](https://cpplinq.codeplex.com/SourceControl/changeset/359ffa38b853c0113589b5cb69ff05d36e375a6a). It also includes an corresponding call to std::find_if. Only the call to first invokes the copy constructor of…
// ----------------------------------------------------------------------------------------------
// Copyright (c) Mårten Rånge.
// ----------------------------------------------------------------------------------------------
// This source code is subject to terms and conditions of the Microsoft Public License. A
// copy of the license can be found in the License.html file at the root of this distribution.
// If you cannot locate the Microsoft Public License, please send an email to
// dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
// by the terms of the Microsoft Public License.
// ----------------------------------------------------------------------------------------------
// You must not remove this notice, or any other, from this software.