Skip to content

Instantly share code, notes, and snippets.

View bignacio's full-sized avatar

Bira Ignacio bignacio

View GitHub Profile
@bignacio
bignacio / spin.go
Created August 19, 2021 00:15
golang select in a for loop
/**
simple example of how a for/select/default combination is a tight loop that consumes a good amount of CPU
*/
package main
import (
"fmt"
"time"
)
@bignacio
bignacio / another_class_base.rb
Last active September 21, 2015 17:55
autoload & require deadlock
module DeadlockTest
class AnotherClassBase
end
end