Skip to content

Instantly share code, notes, and snippets.

View thisisthemurph's full-sized avatar
👁️
I can see you

Michael Murphy thisisthemurph

👁️
I can see you
  • Stratford-upon-Avon, United Kingdom
View GitHub Profile
@vrslev
vrslev / main.py
Last active May 28, 2024 10:08
Automatic browser reloading in FastAPI
import os
import arel
from fastapi import FastAPI, Request
from fastapi.templating import Jinja2Templates
app = FastAPI()
templates = Jinja2Templates("templates")
if _debug := os.getenv("DEBUG"):
@vasanthk
vasanthk / System Design.md
Last active July 6, 2024 10:13
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@hqf00342
hqf00342 / DatagridStyle.xaml
Created September 4, 2015 03:21
Style for wpf Datagrid
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!--DataGrid用のスタイル-->
<Style TargetType="DataGrid">
<!-- Make the border and grid lines a little less imposing -->
<Setter Property="BorderBrush" Value="#DDDDDD" />
<Setter Property="HorizontalGridLinesBrush" Value="#DDDDDD" />
<Setter Property="VerticalGridLinesBrush" Value="#DDDDDD" />
<Setter Property="RowStyle">