When a key combination is displayed, the modifiers are written in the order presented here. For example, Control + Option + Shift + Command + Q would be written as ⌃⌥⇧⌘Q.
| Sym | Key | Alt |
|---|---|---|
| ⌃ | Control | |
| ⌥ | Option |
| // | |
| // ContentView.swift | |
| // Airdrop Demo | |
| // | |
| // Created by Daniel Kuntz on 7/30/23. | |
| // | |
| import SwiftUI | |
| struct ContentView: View { |
| version: "3.4" | |
| networks: | |
| example-com--postgres: ~ | |
| example-com--redis: ~ | |
| services: | |
| # PostgreSQL | |
| postgres: | |
| container_name: example-com--postgres |
| import datetime | |
| from typing import TYPE_CHECKING, Any, Optional, final | |
| import sqlalchemy as sa | |
| from pydantic import BaseModel, Field | |
| from sqlalchemy.dialects.postgresql import JSONB | |
| from sqlalchemy.orm import Mapped, declarative_base, mapped_column, sessionmaker | |
| from typing_extensions import override | |
| if TYPE_CHECKING: |
| /** | |
| * This script automates the process of deleting your own Instagram comments. | |
| * It deletes comments in batches to avoid hitting rate limits or breaking the page. | |
| * | |
| * WARNING: This function directly manipulates the DOM and depends on the current HTML | |
| * structure of Instagram's website to work. If Instagram implements changes to the | |
| * activity page layout, structure, or functionality, this script may break or cause | |
| * unexpected behavior. Use at your own risk and always review code before running it. | |
| * | |
| * How to use: |
| #!/usr/bin/env python3 | |
| # uv run lemire.py --token <your_github_token> --user <github_username> | |
| # | |
| # To generate a GitHub Personal Access Token: | |
| # 1. Go to https://github.com/settings/tokens | |
| # 2. Click "Generate new token (classic)" | |
| # 3. Give it a name, e.g., "GitHub Search Script" | |
| # 4. Select scopes: For public repositories, select "public_repo". For private, select "repo". | |
| # 5. Click "Generate token" | |
| # 6. Copy the token and use it as --token argument. |
package.json, etc.) for available scripts.DSA is no longer about solving random sheets or memorizing solutions. It’s about a clear, structured, and realistic approach from absolute beginner to interview-ready Candidate.
| # Create a new worktree and branch from within current git directory. | |
| ga() { | |
| if [[ -z "$1" ]]; then | |
| echo "Usage: ga [branch name]" | |
| exit 1 | |
| fi | |
| local branch="$1" | |
| local base="$(basename "$PWD")" | |
| local path="../${base}--${branch}" |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"