Skip to content

Instantly share code, notes, and snippets.

View na2hiro's full-sized avatar
💽
Remix!

na2hiro na2hiro

💽
Remix!
View GitHub Profile
@na2hiro
na2hiro / Remix-request-cheatsheet.md
Last active July 4, 2024 04:16
Remix request cheatsheet
@tanakh
tanakh / gist:8006086
Created December 17, 2013 14:51
fizzbuzz
fizzbuzz :: Int -> String
fizzbuzz n = fromMaybe (show n) $
(guard (n `mod` 3 == 0) >> pure "Fizz") <>
(guard (n `mod` 5 == 0) >> pure "Buzz")
main :: IO ()
main = forM_ [1..100] $ putStrLn . fizzbuzz