Skip to content

Instantly share code, notes, and snippets.

View miku86's full-sized avatar
🛠️
Creating

miku86

🛠️
Creating
View GitHub Profile
@stettix
stettix / things-i-believe.md
Last active July 31, 2025 07:29
Things I believe

Things I believe

This is a collection of the things I believe about software development. I have worked for years building backend and data processing systems, so read the below within that context.

Agree? Disagree? Feel free to let me know at @JanStette.

Fundamentals

Keep it simple, stupid. You ain't gonna need it.

import hashlib as hasher
import datetime as date
# Define what a Snakecoin block is
class Block:
def __init__(self, index, timestamp, data, previous_hash):
self.index = index
self.timestamp = timestamp
self.data = data
self.previous_hash = previous_hash
@Rich-Harris
Rich-Harris / service-workers.md
Last active August 5, 2025 07:38
Stuff I wish I'd known sooner about service workers

Stuff I wish I'd known sooner about service workers

I recently had several days of extremely frustrating experiences with service workers. Here are a few things I've since learned which would have made my life much easier but which isn't particularly obvious from most of the blog posts and videos I've seen.

I'll add to this list over time – suggested additions welcome in the comments or via twitter.com/rich_harris.

Use Canary for development instead of Chrome stable

Chrome 51 has some pretty wild behaviour related to console.log in service workers. Canary doesn't, and it has a load of really good service worker related stuff in devtools.

@yqritc
yqritc / gist:ccca77dc42f2364777e1
Last active January 25, 2025 17:43
Equal column spacing for Android RecyclerView GridLayoutManager by using custom ItemDecoration

ItemOffsetDecoration

public class ItemOffsetDecoration extends RecyclerView.ItemDecoration {

    private int mItemOffset;

    public ItemOffsetDecoration(int itemOffset) {
        mItemOffset = itemOffset;
    }
@caperj
caperj / Self Esteem.md
Created November 28, 2013 22:02
Self-help ebook

% The Six Pillars of Self-Esteem % Nathaniel Branden % _

Introduction

Let us identify the most important factors on which self-esteem depends.

If self-esteem is the health of the mind, then few subjects are of comparable urgency

@digitaljhelms
digitaljhelms / gist:4287848
Last active August 8, 2025 12:55
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch