Skip to content

Instantly share code, notes, and snippets.

View tallakt's full-sized avatar

Tallak Tveide tallakt

View GitHub Profile
#!/usr/bin/env ruby
# Reads the anemometer "Holdpeak HP-866A" from USB port
# Time stamp in unix time and windspeed in m/s is output
require 'rubyserial'
if ARGV.length != 1
$stderr.puts "usage: read_anemometer.rb <tty device>"
exit(-1)
@tallakt
tallakt / foilsjekte.jl
Last active July 14, 2019 21:42
Foil sjekte
using Plots
using Optim
MS_KNOTS = 1.943844
KG_LBS = 2.204623
KW_HP = 1.341022
M_FEET = 3.28084
# Dimensjoner på båten (i meter, kg etc)
# https://marex.no/wp-content/uploads/2016/12/Duckie-Catalog.pdf
@tallakt
tallakt / chesscheat.jl
Last active October 8, 2022 21:53
Looking for chess cheating in centipawn dataset
using CSV
using Plots
function load_all_games()
CSV.read("/Users/tallakt/Downloads/15982_games_with_centipawn_metrics/15982_games_with_centipawn_metrics.csv", DataFrame)
end
function player_games(all_games, player_name)