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
#!/usr/bin/python3 | |
import sys | |
import asyncio | |
import json | |
import datetime | |
from urllib.parse import urljoin | |
from typing import NamedTuple | |
import aiohttp | |
import bs4 |
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
(cl-defun viiru/ement-notify-track (event room session &key (buffer-name "*Ement Notifications*")) | |
(with-demoted-errors "viiru/ement-notify-track-if-buffer: %S" | |
(when (ement-notify--event-message-p event room session) | |
(let ((buffer (if (ement-notify--room-buffer-live-p event room session) | |
(map-elt (ement-room-local room) 'buffer) | |
(when (ement-notify--room-unread-p event room session) | |
(get-buffer buffer-name)))) | |
(faces (if (ement-notify--room-unread-p event room session) | |
'(ement-room-list-direct) | |
'(default)))) |
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
(defun project-git-grep () | |
(interactive) | |
(let* ((pr (project-current t)) | |
(default-directory (project-root pr))) | |
(call-interactively #'vc-git-grep))) |
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
[ | |
{ | |
"name": "Glove80 numpad layer" | |
}, | |
[ | |
{ | |
"x": 1, | |
"a": 7 | |
}, | |
"<i class='kb kb-Multimedia-Play-Pause'></i>", |
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
import logging | |
from pylsp.config.config import Config | |
logging.basicConfig(level=logging.DEBUG) | |
conf = Config(None, None, None, None) |
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
(defun forge-org-issue-create-or-sync (issue) | |
(save-window-excursion | |
(let* ((id (cdr (assoc 'id issue))) | |
(location (org-id-find id))) | |
(if location (org-id-goto id) | |
(forge-org-issue-create issue)) | |
(forge-org-issue-sync-props issue)))) | |
(defun forge-org-issue-sync-props (issue) | |
(let* ((labels (mapcar (lambda (val) (split-string val "::")) (cdr (assoc 'labels test-issue)))) |