Skip to content

Instantly share code, notes, and snippets.

View tomlockwood's full-sized avatar
🔱
chumby

Tom Lockwood tomlockwood

🔱
chumby
View GitHub Profile
@tomlockwood
tomlockwood / gist:85e7a3e95ba89a789f3acb1d0ffecb81
Created March 18, 2024 02:45
Seat configurations based on proportions
enf = 0.788 # Change this for different probabilities
disenf = 1 - enf
# Change this number for different numbers of members per body
SEATS = 14
total = 0
probability_per = {k: 0 for k in range(SEATS + 1)}
@tomlockwood
tomlockwood / main.go
Created March 28, 2020 12:38
gogol interface code
package main
import (
"fmt"
"github.com/go-gl/glfw/v3.2/glfw"
"github.com/kbinani/screenshot"
gol "github.com/tomlockwood/gogol"
render "github.com/tomlockwood/gogol/render"
"image"
"image/png"
@tomlockwood
tomlockwood / gist:6af3f46270756f229955f5ee4ed2fef8
Created March 14, 2020 07:07
Message to Buildkite Support
Hello buildkite support, please delete the integration the e-mail account with the word "cloud" in it has to my github account. Thank you!

Keybase proof

I hereby claim:

  • I am tomlockwood on github.
  • I am tomlockwood (https://keybase.io/tomlockwood) on keybase.
  • I have a public key ASDAcM51cFDTmpsmt2ABhjhJlXQU4FEgb1RZDAu9NDpOego

To claim this, I am signing this object:

@tomlockwood
tomlockwood / gist:0e25a1ea96e73202ac32f910101d2258
Created June 12, 2018 23:18
Ruby different zork approach
class Interactable
attr_accessor :name, :codeblocks
def initialize(name)
@name = name
@codeblocks = []
end
end
class CodeBlock
attr_accessor :code, :matches, :match_type