Skip to content

Instantly share code, notes, and snippets.

View QuakePhil's full-sized avatar
🏠
Working from home

Phil QuakePhil

🏠
Working from home
View GitHub Profile
@QuakePhil
QuakePhil / spiraltoe.go
Last active January 3, 2023 13:07
Spi-Ral-Toe
package main
import "os"
var input [3]byte // 2nd index for enter key, 3rd for windoze
var spiral = []byte{1, 2, 3, 8, 9, 4, 7, 6, 5}
var unspiral = []byte{1, 2, 3, 6, 9, 8, 7, 4, 5}
var play func(byte, []rune)
func main() {
@QuakePhil
QuakePhil / tictactoe.go
Last active January 2, 2023 11:34
Tic-Tac-Toe
/*
Results of my first interaction with chat.openai.com
Some precursor here: https://pastebin.com/00Lvty2b
And here:
package main
import (
@QuakePhil
QuakePhil / test.py
Created December 12, 2019 15:57
test.py
import pandas as pd
import pyarrow as pa
import pyarrow.parquet as pq
buffer = [[1,2,3], [4,5,6], [7,8,9]]
pq.write_table(
pa.Table.from_pandas(pd.DataFrame(buffer)), "test.parquet"
)