Skip to content

Instantly share code, notes, and snippets.

View theCompanyDream's full-sized avatar
🌮
yall know what I'm doin'

Timothy Brantley II theCompanyDream

🌮
yall know what I'm doin'
View GitHub Profile

Java: The callicoder/java-snowflake repository provides a clear, distributed unique ID generator implementation, often used as a learning resource. Another optimized, high-throughput implementation using Compare-And-Swap (CAS) is available at HMWCS/java-snowflake-id-generator.

Go (Golang): bwmarrin/snowflake is a simple-to-use Go implementation that follows the original Twitter format. Another lock-free, high-scale implementation can be found at godruoyi/go-snowflake.

.NET (C#): JakobKirton/SnowflakeGenerator offers a C# implementation compatible with .NET Standard 2.0 and available as a NuGet package. For a simple and thread-safe generator, see TanerSaydam/SnowflakeIdGeneratorForCSharp.

@theCompanyDream
theCompanyDream / BF.java
Created June 12, 2012 13:06 — forked from lawrancej/BF.java
Brainf**
import java.io.IOException;
import java.util.LinkedList;
public class BF {
private interface Visitor {
void visit (Loop loop);
void visit (Left left);
void visit (Right right);
void visit (Increment increment);
void visit (Decrement decrement);