Skip to content

Instantly share code, notes, and snippets.

@ianohara
ianohara / natural_frequencies.py
Created April 14, 2023 10:43
This calculates frequencies of beams as part of the "Wind Sounds: Which component sings?" post on ianohara.com
#!/usr/bin/env python3
import dataclasses
from dataclasses import dataclass
import math
@dataclass
class Beam:
name: str
width_x: float
@ianohara
ianohara / 2048.c
Last active August 29, 2015 13:58 — forked from justecorruptio/2048.c
M[16]; /* The board */
const int brd_pos_cnt=16;
W;
k;
main(){
system("stty cbreak");
T();
puts(W&1?"WIN":"LOSE");
}