UNIX = system designed at Bell Labs, created by Dennis Ritchie
Linux = derivative of UNIX, created by Linus Torvalds
Dennis Ritchie = creator of UNIX, C programming language, hero to us all
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
""" | |
Goal: To examine which type is the smallest in Python | |
Types used: int, float, str, list, tuple, dict, set, frozenset | |
None, Ellipsis, object, lambda, function, Exception | |
""" | |
def f(): return |
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
""" | |
Basic colors script | |
prints all ANSI colors from 0 to 256 | |
to show you your term's color mapping | |
""" | |
from sys import argv |
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
""" | |
Scraping "Who's Hiring" Posts on Hackernews | |
Requires: BeautifulSoup4, Requests, Python 3 | |
""" | |
from sys import argv |
-- Fizzbuzzing | |
fizzBuzz True False _ = "Fizz" | |
fizzBuzz False True _ = "Buzz" | |
fizzBuzz True True _ = "FizzBuzz" | |
fizzBuzz _ _ x = show x | |
main = do | |
mapM_ putStrLn [fizzBuzz (three x) (five x) x | x <- [1..100]] | |
where | |
three n = n `mod` 3 == 0 |