Skip to content

Instantly share code, notes, and snippets.

@czep
czep / aoc24_06.R
Created December 7, 2024 01:07
AoC 2024 Day 6
###
### Day 6
###
### Part 1
### concise version, don't bother checking for matrix bounds!
library(tidyverse)
input <- read_lines("day6_input.txt")
@czep
czep / fisher-yates.html
Created May 7, 2021 18:33
Iterative Fisher-Yates permutation in Javascript
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Fisher-Yates</title>
</head>
<body>
<h1>Fisher-Yates Shuffling in Javascript</h1>
<p>Open the console, ensure that the accompanying javascript file is also available, then click the button below.</p>