Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
import anyio | |
from fastapi import FastAPI | |
app = FastAPI() | |
@app.on_event("startup") | |
async def startup(): | |
limiter = anyio.to_thread.current_default_thread_limiter() |
from fastapi import APIRouter, FastAPI | |
from utils import create_versioning_docs | |
app = FastAPI(docs_url=None, redoc_url=None) | |
v1_router = APIRouter(prefix="/v1") | |
v2_router = APIRouter(prefix="/v2") |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
import functools | |
import importlib | |
import os | |
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings") # noqa | |
import anyio | |
from asgiref.sync import sync_to_async | |
from django.conf import settings | |
from django.core.wsgi import get_wsgi_application |
{ | |
"shortcuts": [ | |
{ | |
"command": "notebook:toggle-all-cell-line-numbers", | |
"keys": [ | |
"Alt L" | |
], | |
"selector": ".jp-Notebook:focus" | |
}, | |
// Moving cells |
{ | |
"kse_rebinds": { | |
"edit": [], | |
"command": [ | |
{ | |
"to": ";", | |
"action_name": "jupyter-notebook:run-all-cells-above" | |
} | |
] | |
}, |
Emotional intelligence
Color Images representation
If the identification problem is easier in color for us humans, it’s likely easier for an algorithm to see color images too!
This gist has most of the things I've used to develop the frontend using vite inside a monolithic django app.
Here's a boilerplate that uses this approach: https://github.com/labcodes/django-react-boilerplate
A couple of things to note:
Removing the last commit
To remove the last commit from git, you can simply run git reset --hard HEAD^
If you are removing multiple commits from the top, you can run git reset --hard HEAD~2 to remove the last two commits. You can increase the number to remove even more commits.
If you want to "uncommit" the commits, but keep the changes around for reworking, remove the "--hard": git reset HEAD^
which will evict the commits from the branch and from the index, but leave the working tree around.
If you want to save the commits on a new branch name, then run git branch newbranchname
before doing the git reset.