Skip to content

Instantly share code, notes, and snippets.

@loisaidasam
loisaidasam / poem.txt
Created September 19, 2014 15:08
A short poem by Ben G
im rebellious
i dont really do eggs for bfast
i dont really like bfast food unless i had a heavy night of drinking
@kachayev
kachayev / concurrency-in-go.md
Last active May 4, 2025 05:48
Channels Are Not Enough or Why Pipelining Is Not That Easy
@staltz
staltz / introrx.md
Last active June 6, 2025 21:39
The introduction to Reactive Programming you've been missing
@namuol
namuol / INSTALL.md
Last active December 11, 2024 12:21
rage-quit support for bash

rage-quit support for bash

HOW TO INSTALL

Put flip somewhere in your $PATH and chmod a+x it.

Copy fuck into ~/.bashrc.

@debasishg
debasishg / gist:8172796
Last active May 22, 2025 01:06
A collection of links for streaming algorithms and data structures

General Background and Overview

  1. Probabilistic Data Structures for Web Analytics and Data Mining : A great overview of the space of probabilistic data structures and how they are used in approximation algorithm implementation.
  2. Models and Issues in Data Stream Systems
  3. Philippe Flajolet’s contribution to streaming algorithms : A presentation by Jérémie Lumbroso that visits some of the hostorical perspectives and how it all began with Flajolet
  4. Approximate Frequency Counts over Data Streams by Gurmeet Singh Manku & Rajeev Motwani : One of the early papers on the subject.
  5. [Methods for Finding Frequent Items in Data Streams](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.187.9800&rep=rep1&t
@shaldengeki
shaldengeki / sabretooth-llamaguy-tagd.md
Created December 25, 2013 18:29
Sabretooth and LlamaGuy's descriptions of how tagd works on ETI

Sabretooth

Anyway, we do use a custom service written in C++ that holds all of the tag data in-memory. Each tag holds ordered set of topic IDs. The order is by last post time and then by topic ID for tie breaking; this ordering is consistent between different tags, which gets important later. If you iterate through one of these sets you'll get all the topics tagged with that tag, most recently updated to least recently updated.

Tags also define and implement a very simple cursor interface. This interface is basically three functions; "advance the cursor by one topic", "advance the iterator until it's pointing to or past this topic (passing in a reference topic)", and "give me the currently pointed-to topic". When you are talking to the service, you can say "skip 50 topics and then give me 50 topics", and it will advance the cursor 50 times and throw away the result, and then advance the cursor 50 more times while returning each result. Pretty straightforward.

The cursor interface is also implemen

@jbenet
jbenet / simple-git-branching-model.md
Last active May 3, 2025 18:07
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@pzurek
pzurek / Twelve_Go_Best_Practices.md
Last active February 22, 2025 14:29
Twelve Go Best Practices
@ragingwind
ragingwind / Backend Architectures Keywords and References.md
Last active March 21, 2025 15:01
Backend Architectures Keywords and References
@perrygeo
perrygeo / pubsub_server.py
Last active March 17, 2018 10:43
Runs a simple pubsub listener which pushes to clients via sockjs
# -*- coding: utf-8 -*-
"""
Runs a simple pubsub listener which pushes to clients via sockjs
Based on https://gist.github.com/mrjoes/3284402
Eventually I'd like to have one redis connection listening on user_* channel
and pushing messages ONLY to that user's client. Currently it just sends
a message to everyone.
Setup: