Jun/27/2017
🏷️ Tags: [demo, notion]
Hi there, this is a demo of a blog post.
Notion.so is totally capable of being a complete blog.
You can include a link beautifully like this:
And some code snippets:
def protect(protect_args=None):
global c
flags = ''
option_end = False
if not protect_args:
protect_args = argv[1:]
for arg in protect_args:
if arg == '--':
option_end = True
elif (arg.startswith("-") and not option_end):
flags = flags + arg[arg.rfind('-') + 1:]
elif arg in c.invalid:
pprint('"." and ".." may not be protected')
else:
path = abspath(expv(expu(arg)))
evalpath = dirname(path) + "/." + basename(path) + c.suffix
if not exists(path):
pprint("Warning: " + path + " does not exist")
with open(evalpath, "w") as f:
question = input("Question for " + path + ": ")
answer = input("Answer: ")
f.write(question + "\n" + answer + "\n" + flags.upper())
Even LaTeX if you like:
$$ e=mc^2 $$
And tweets!
https://twitter.com/realDonaldTrump/status/869858333477523458