https://github.com/zyedidia/micro/blob/master/runtime/help/defaultkeys.md https://github.com/zyedidia/micro/blob/master/runtime/help/commands.md https://github.com/zyedidia/micro/blob/master/runtime/help/keybindings.md
Ctrl+E to open command panel
Based on configuration provided in .config/nvim/init.vim
Note
Highlights information that users should take into account, even when skimming.
Tip
Optional information to help a user be more successful.
Important
Crucial information necessary for users to succeed.
[!WARNING]
| #! /usr/bin/env bash | |
| ############################################################################################## | |
| # _ _ _ _ _ # | |
| # (_) (_) | | | | | | # | |
| # _ __ _ _ __ _ ___ ___ _ __ __ _ | |_ ___ | |__ _ __ __ _ __| | # | |
| #| '_ \ | || '__|| | ______ / __| / __|| '__| / _` || __| / __|| '_ \ | '_ \ / _` | / _` | # | |
| #| | | || || | | ||______|\__ \| (__ | | | (_| || |_ | (__ | | | || |_) || (_| || (_| | # | |
| #|_| |_||_||_| |_| |___/ \___||_| \__,_| \__| \___||_| |_|| .__/ \__,_| \__,_| # | |
| # | | # |
The use of __main__.py to create executables
myprojectfolder/
|_ __main__.py
|_ __init__.py
Being __main__.py:
print("Hello")
| import curses | |
| import os | |
| def main(win): | |
| win.nodelay(True) | |
| key = "" | |
| win.clear() | |
| win.addstr("Detected key:") |
| from fastapi import Request, Depends, HTTPException, Response | |
| from fastapi.responses import RedirectResponse | |
| # This must be randomly generated | |
| RANDON_SESSION_ID = "iskksioskassyidd" | |
| # This must be a lookup on user database | |
| USER_CORRECT = ("admin", "admin") | |
| # This must be Redis, Memcached, SQLite, KV, etc... |
| #!/usr/bin/env python | |
| import os | |
| import sys | |
| os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'platform_service_example.settings') | |
| import django | |
| django.setup() | |
| from pdoc.__main__ import cli | |
| sys.exit(cli()) |
A comprehensive collection of Vim power-user techniques
adapted from zzapper
| { | |
| 'AsyncGenerator': ['asend', 'athrow'], | |
| 'AsyncIterable': ['__aiter__'], | |
| 'AsyncIterator': ['__anext__'], | |
| 'Awaitable': ['__await__'], | |
| 'ByteString': ['__getitem__', '__len__'], | |
| 'Callable': ['__call__'], | |
| 'Collection': ['__contains__', '__iter__', '__len__'], | |
| 'Container': ['__contains__'], | |
| 'Coroutine': ['__await__', 'send', 'throw'], |