I saw a poster describing a new magnet concept - Imagine a pot shaped magnet - but with the poles arranged in segments.
It would attract to another - but a twist would cause it to repell.
I Did some Googling and found this which shows the concept.
formatting link