Skip to content

Instantly share code, notes, and snippets.

@iamhenry
iamhenry / Software Design Document (SDD).md
Last active July 2, 2026 16:50
Software Design Document Template

Software Design Document (SDD)

1. Introduction

  • Purpose: [Describe the purpose of this document. E.g., to define the design of the XYZ system.]
  • Scope: [Summarize the system's objectives and what is in/out of scope.]
  • Definitions and Acronyms: [List and define important terms.]
  • References: [Link to related documents: requirements, API specs, etc.]

OS version Arch File Host Size Download Link Rate Limits
Windows 1.0 8086 Winworld (Kansas City, Missouri) 541KB Download ❌ Yes, 25 per day
Windows 2.0 386 Winworld (Kansas City, Missouri) 2.80MB Download ❌ Yes, 25 per day
Windows 3.0 8086/386
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

@yuyasugano
yuyasugano / sharperatio_apple.py
Created September 16, 2020 11:50
Pandas sharpe ratio calculation for Apple Inc
# compute sharpe ratio using Pandas rolling and std methods, the trading days is set to 252 days
TRADING_DAYS = 252
returns = np.log(df['Close']/df['Close'].shift(1))
returns.fillna(0, inplace=True)
volatility = returns.rolling(window=TRADING_DAYS).std()*np.sqrt(TRADING_DAYS)
sharpe_ratio = returns.mean()/volatility
sharpe_ratio.tail()
fig = plt.figure(figsize=(15, 7))
ax3 = fig.add_subplot(1, 1, 1)
@CMCDragonkai
CMCDragonkai / regular_expression_engine_comparison.md
Last active July 2, 2026 16:43
Regular Expression Engine Comparison Chart

Regular Expression Engine Comparison Chart

Many different applications claim to support regular expressions. But what does that even mean?

Well there are lots of different regular expression engines, and they all have different feature sets and different time-space efficiencies.

The information here is just copied from: http://regular-expressions.mobi/refflavors.html

@adashrod
adashrod / CamelCaseRant.md
Last active July 2, 2026 16:40
A rant about how to properly camel-case acronyms and abbreviations

Why using all-caps acronyms/abbreviations in camel case names is wrong

or, write MyUrlClass, not MyURLClass

Camel case

General Rules:

  • Each word is capitalized
  • no spaces
  • only alphanumeric characters

Upper Camel Case (aka Pascal case)

@frozenpandaman
frozenpandaman / widevine-decryption.md
Last active July 2, 2026 16:40
download videos protected with widevine DRM
@paulromano
paulromano / Depletion changing material.ipynb
Created January 9, 2022 19:45
Example of running a depletion calculation while changing a material in the middle
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.