Skip to content

Instantly share code, notes, and snippets.

def f(n):
bits = []
for i in range(8):
bits = [n & 1] + bits
n >>= 1
if bits.count(1) > 4 or bits.count(1) == 4 and bits[0] == 0:
op = lambda a, b: (a^b)^1
bits.append(0)
else:
op = lambda a, b: a^b
@roadischosen
roadischosen / stuck_get_a_hint.txt
Created April 28, 2018 11:58
Removes the annoying "Stuck? Get a hint!" message on Codecademy.
codecademy.com##.overlay__3LeDG7tuQrrJdjPm8agkmx:not(.showHeader__1DPMm-lVsCbpuRUE68nuOv)