Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am well1791 on github.
  • I am well1791 (https://keybase.io/well1791) on keybase.
  • I have a public key whose fingerprint is DBBF 8866 7E6A B660 1843 031F BE02 F52B 30AE 15AC

To claim this, I am signing this object:

@well1791
well1791 / bitwise.rb
Last active July 11, 2017 17:55 — forked from ggilder/fizz.rb
FizzBuzz
def fizzbuzz(n)
acc = 810092048
messages = [nil, "Fizz", "Buzz", "FizzBuzz"]
(1..n).each do |i|
c = acc & 3
puts messages[c] || i
acc = acc >> 2 | c << 28
end
end
const curryN = (n, f) => (...args) => args.length < n
? curryN(n, f).bind(null, ...args)
: f(...args);
@well1791
well1791 / ct_notes.txt
Created June 21, 2017 19:08 — forked from buzzdecafe/ct_notes.txt
Category Theory for Programmers: Notes
CATEGORY THEORY FOR PROGRAMMERS
Category Theory 1.1: Motivation and Philosophy
https://www.youtube.com/watch?v=I8LbkfSSR58&index=1&list=PLbgaMIhjbmEnaH_LTkxLI7FMa2HsnawM_
Composability, Abstraction, Reusability
Category Theory is a higher-level language.
Not a practical, executable language.