Skip to content

Instantly share code, notes, and snippets.

use aoc_runner_derive::aoc;
use std::iter::FromIterator;
#[derive(Debug, Eq, PartialEq, Clone, Copy)]
struct AlphabetSet {
contains: u32,
}
impl AlphabetSet {
fn empty() -> Self {
use aoc_runner_derive::aoc;
use std::convert::TryInto;
const TOTAL_SIZE: usize = 10;
const LINE_SIZE: usize = TOTAL_SIZE + 1;
struct Input<'a>(&'a [u8]);
impl<'a> Iterator for Input<'a> {
type Item = BinarySpacePartitioning;
@ThomasdenH
ThomasdenH / main.rs
Created July 3, 2018 11:00
Casimir eigenmode summation
use std::f32::consts::PI;
/// The exponent coefficient. Determines the contribution from higher frequencies.
const S: f32 = 0.01;
/// The discrete distance difference to use.
const DELTA_D: f32 = 0.01;
/// The total size of the box, after which the geometry is periodic.
const TOTAL_DISTANCE: f32 = 1.0;
Verifying that +thomasdh is my blockchain ID. https://onename.com/thomasdh
### Keybase proof
I hereby claim:
* I am ThomasdenH on github.
* I am thomasdh (https://keybase.io/thomasdh) on keybase.
* I have a public key whose fingerprint is 3E32 7B99 0DD3 0A85 8FC8 A056 74D4 F01B 7D31 9953
To claim this, I am signing this object: