This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\title{\vspace{-2cm}Writing single page documents in \LaTeX} | |
\author{Author name} | |
\begin{document} | |
\maketitle | |
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def in_nD_list(search_list, key): | |
for element in search_list: | |
if isinstance(element, str): | |
if key in element: | |
break | |
else: | |
if in_nD_list(element, key): | |
break | |
else: | |
return False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(fizzbuzz). | |
-export([fizzbuzz/0]). | |
fizzbuzz() -> N = 1, fizzbuzz({N rem 3, N rem 5, N}). | |
fizzbuzz({N3, N5, N}) when N =< 100 -> | |
case {N3, N5, N} of | |
{0, 0, _} -> io:format("FizzBuzz~n"); | |
{0, _, _} -> io:format("Fizz~n"); | |
{_, 0, _} -> io:format("Buzz~n"); |
NewerOlder