Skip to content

Instantly share code, notes, and snippets.

@simpleigh
simpleigh / addall.log
Last active May 21, 2020 19:18
hawkear#2 output
*** HawkEar code level: GitRef=fix-dev-build
@simpleigh
simpleigh / pipe-quarter-plans.py
Created June 6, 2016 21:46
Practice quarter peal plans for Pipe's classic 11-part cyclic
"""
Compute practice quarter peal plans for Pipe's classic 11-part cyclic
We can reduce David Pipe's 11-part classic cyclic composition by
ringing only two per part plus the link method. But how?
This script computes all the possible plans to jump between lead heads
using short methods. A single part will look like the following:
- Cyclic link method (Slinky / Slink)
- Short method
- Method from the original part
<?php
// Really simple heap that expects to store numbers
class Heap extends SPLHeap
{
public function compare($value1, $value2)
{
return $value2 - $value1;
}
}