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 __future__ import annotations | |
import asyncio | |
import asyncio.selector_events | |
import concurrent.futures | |
import math | |
import pickle | |
import selectors | |
import uuid | |
from collections import defaultdict, deque |
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 concurrent.futures | |
import os | |
import queue | |
import urllib.request | |
import weechat | |
URLS = [ | |
"https://httpbin.org/delay/1", | |
"https://httpbin.org/delay/2", |
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
function my_section_read_cb(data, config_file, section, option_name, value) { | |
weechat.print("", "js: value: '" + value + "', is_null: " + (value === null) + ", is_undefined: " + (value === undefined)); | |
return weechat.WEECHAT_CONFIG_OPTION_SET_OK_CHANGED; | |
} | |
weechat.register("script_config_js", "trygveaa", "0.0.1", "MIT", "", "", "") | |
var config_file = weechat.config_new("script_config_js", "", "") | |
var config_section = weechat.config_new_section( |
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
#!/bin/bash | |
title="$1" | |
body="${2/&/&}" | |
body="${body/</<}" | |
body="${body/>/>}" | |
if [ -n "$TMUX" ]; then | |
printf '\ePtmux;\e\e]99;i=1:d=0;%s\e\e\\\e\\' "$title" >/dev/tty | |
printf '\ePtmux;\e\e]99;i=1:d=1:p=body;%s\e\e\\\e\\' "$body" >/dev/tty |
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
weechat.register("script_config", "trygveaa", "0.0.1", "MIT", "", "", "") | |
var config_file = weechat.config_new("slack", "", "") | |
var config_team_default = weechat.config_new_section( | |
config_file, "team_default", 0, 0, "", "", "", "", "", "", "", "", "", "" | |
) | |
var config_team = weechat.config_new_section( | |
config_file, "team", 0, 0, "", "", "", "", "", "", "", "", "", "" |
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
/exec -bg kitty +kitten icat --transfer-mode stream --place 10x10@0x0 /path/to/image |
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
# Default programs | |
export TERMINAL='kitty -1' | |
export BROWSER='browser' | |
export EDITOR='vim' | |
export PAGER='less -RS' | |
export LESS='FRS' | |
export SYSTEMD_LESS='FRSM' | |
export RIPGREP_CONFIG_PATH=~/.config/ripgrep/config | |
export FZF_DEFAULT_COMMAND='fd --hidden --follow --exclude .git' | |
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" |
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 kittens.hints.main import main as hints | |
from kittens.icat.main import main as icat | |
from kitty.utils import screen_size_function | |
import time | |
screen_size = screen_size_function() | |
def main(args): | |
ss = screen_size() | |
hints_result = hints('') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder