Skip to content

Instantly share code, notes, and snippets.

View baongoc124's full-sized avatar

Ngoc baongoc124

View GitHub Profile
@CMCDragonkai
CMCDragonkai / nix_inputs.md
Last active December 26, 2025 14:11
Understanding Nix Inputs #nix

Understanding Nix Inputs

Every Nix derivation produces a Nix store output that has 3 things:

  • Executables
  • Libraries
  • Data

Executables are always exported using the PATH environment variable. This is pretty much automatic.

@jdh747
jdh747 / Google IO 2012.md
Last active August 7, 2025 17:55
Go Concurrency Patterns: Google IO 2012

Concurrency Patterns in Go

Notes taken from Rob Pike's presentation 'Google I/O 2012 - Go Concurrency Patterns'.

1. Generator: function that returns a channel

The code is as follows:

c := boring("boring!")  // function returning a channel

for i := 0; i < 5; i++ {
@r-k-b
r-k-b / extract-rfc822-link-from-gmail.user.js
Last active December 7, 2024 11:54
Get an email's RFC822 msgId Link from GMail
@abhin4v
abhin4v / RingTopologySimulation.scala
Created July 12, 2010 19:27
Simulation of Ring network topology using Actors in Scala
import actors.Actor
import actors.Actor._
object RingTopologySimulation extends Application {
case class Message(count: Int)
class Node(id: Int, stops: Int) extends Actor {
var next: Node = null