Function | Shortcut |
---|---|
New Tab | ⌘ + T |
Close Tab or Window | ⌘ + W (same as many mac apps) |
Go to Tab | ⌘ + Number Key (ie: ⌘2 is 2nd tab) |
Go to Split Pane by Direction | ⌘ + Option + Arrow Key |
Cycle iTerm Windows | ⌘ + backtick (true of all mac apps and works with desktops/mission control) |
This file contains hidden or 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
// from/to: { left, top, width, height, shape: 'circle' | 'rect' } | |
function CurvedArrow({ from, to }) { | |
function curvedHorizontal(x1, y1, x2, y2) { | |
function pos(t) { | |
let mx = x1 + (x2 - x1) / 2; | |
let p1 = {x: x1, y: y1}; | |
let p2 = {x: mx, y: y1}; | |
let p3 = {x: mx, y: y2}; | |
let p4 = {x: x2, y: y2}; | |
return { |
This file contains hidden or 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
from functools import partial | |
import pydantic | |
import logging | |
from django.contrib.postgres.fields import JSONField | |
from typing import Type, Union, Tuple | |
from django.core.serializers.json import DjangoJSONEncoder |
This file contains hidden or 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
;;; completion/lsp/config.el -*- lexical-binding: t; -*- | |
(def-package! lsp-mode | |
:commands (lsp-mode lsp-define-stdio-client)) | |
(def-package! lsp-ui | |
:hook (lsp-mode . lsp-ui-mode) | |
:config | |
(set-lookup-handlers! 'lsp-ui-mode | |
:definition #'lsp-ui-peek-find-definitions |
This file contains hidden or 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
# Written by Senko Rasic <[email protected]> | |
# Released into Public Domain. Use it as you like. | |
from django.db import models | |
class SingletonModel(models.Model): | |
"""Singleton Django Model | |
Ensures there's always only one entry in the database, and can fix the |