Skip to content

Instantly share code, notes, and snippets.

View wood-push-melon's full-sized avatar
Working from home

Shu wood-push-melon

Working from home
  • Canonical
  • Canada
View GitHub Profile
@effigies
effigies / python_packaging_2020.md
Last active January 25, 2024 13:42
Contemporary Python Packaging - 2020

Contemporary Python Packaging

This document lays out a set of Python packaging practices. I don't claim they are best practices, but they fit my needs, and might fit yours.

Validity

This document has been superseded as of January 2023.

This was written in July 2020, superseding this gist from 2019.

@samsieber
samsieber / export-files-job.yaml
Last active June 9, 2021 03:09 — forked from atheiman/export-files-job.yaml
Generate job artifacts in an initContainer and export the files to workstation afterwards.
# Allows copying of job files to local after execution. Example copy command:
apiVersion: batch/v1
kind: Job
metadata:
name: export-files-job
spec:
template:
metadata:
labels:
@wilon
wilon / vim-surround使用指南.MD
Last active March 11, 2025 04:30
vim-surround使用指南,vim-surround如何使用

普通模式

命令 说明 + 示例
ds 删除括号
ds " "Hello world!" =>
Hello world!
cs 替换括号
cs "( "Hello world!" =>
(Hello world!)
cS 替换括号,括号内文本做新一行
cS "{ "Hello world!" => {     Hello world! }
@vasanthk
vasanthk / System Design.md
Last active June 2, 2025 15:44
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?
@parmentf
parmentf / GitCommitEmoji.md
Last active June 2, 2025 22:38
Git Commit message Emoji
@magicznyleszek
magicznyleszek / css-selectors.md
Last active January 27, 2025 14:19
CSS Selectors Cheatsheet

CSS Selectors Cheatsheet

Hi! If you see an error or something is missing (like :focus-within for few years :P) please let me know ❤️

Element selectors

Element -- selects all h2 elements on the page

h2 {
@hrldcpr
hrldcpr / tree.md
Last active January 6, 2025 22:43
one-line tree in python

One-line Tree in Python

Using Python's built-in defaultdict we can easily define a tree data structure:

def tree(): return defaultdict(tree)

That's it!