This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Results of my first interaction with chat.openai.com | |
Some precursor here: https://pastebin.com/00Lvty2b | |
And here: | |
package main | |
import ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
) |