Skip to content

Instantly share code, notes, and snippets.

View bearzk's full-sized avatar

Kai Zhang bearzk

View GitHub Profile
@carolynvs
carolynvs / .gitconfig
Last active October 19, 2022 14:44
git wip - Show what branches you have been working on lately
[alias]
wip = for-each-ref --sort='authordate:iso8601' --format=' %(color:green)%(authordate:relative)%09%(color:white)%(refname:short)' refs/heads
@pesterhazy
pesterhazy / building-sync-systems.md
Last active October 29, 2025 06:56
Building an offline realtime sync engine

So you want to write a sync system for a web app with offline and realtime support? Good luck. You might find the following resources useful.

Overview articles

@allenheltondev
allenheltondev / index.js
Last active November 12, 2022 22:30
Generic PATCH Lambda Function With Ops
const { marshall } = require('@aws-sdk/util-dynamodb');
const { DynamoDBClient, UpdateItemCommand } = require('@aws-sdk/client-dynamodb');
const ddb = new DynamoDBClient();
exports.handler = async (event) => {
try {
// Example input
// [
// { "op": "add", "path": "/comment", "value": "This is a nasty gopher" },