Skip to content

Instantly share code, notes, and snippets.

{
"Profiles": [
{
"Ansi 7 Color (Light)" : {
"Red Component" : 0.93333333333333335,
"Color Space" : "sRGB",
"Blue Component" : 0.83529411764705885,
"Green Component" : 0.90980392156862744
},
"Ansi 15 Color (Light)" : {
" -*- coding: utf-8 -*-
" scriptencoding utf-8
set termencoding=utf-8
set termguicolors
set encoding=utf-8
setglobal fileencoding=utf-8
syntax on
set hls
set expandtab
set colorcolumn=88
alias v=vim
alias fd=fdfind
alias v=vim
#alias top=htop
alias gc="git commit"
alias gcam="git commit -am"
" -*- coding: utf-8 -*-
" scriptencoding utf-8
set termencoding=utf-8
set termguicolors
set encoding=utf-8
setglobal fileencoding=utf-8
syntax on
set hls
set expandtab
set colorcolumn=88
# This is Git's per-user configuration file.
[user]
name = Dima Tisnek
email = dimaqq@gmail.com
[alias]
tree = log --all --decorate --oneline --graph
ls = log --decorate --graph
st = status
branchdate = for-each-ref --sort='-committerdate:iso8601' --format=' %(committerdate:iso8601)%09%(refname)' refs/heads
[diff "minjs"]
# Set up ThinkPad X1 Carbon trackpad on Ubuntu to behave kindof like Mac
#
# dima@kuro ~> functions fix_middle_button
# Defined in /home/dima/.config/fish/conf.d/no-middle-button.fish @ line 6
function fix_middle_button --description 'remap middle buttons to prmiary'
string match -r 'Touchpad.*id=(?<id>[0-9]+)' (xinput list)
if test -n "$id";
xinput set-button-map "$id" 1 1 1 4 5 6 7 8 9 10 11 12
end
[...document.getElementsByTagName("div")].filter(e => e.getAttribute("data-testid") === "comment-top-meta").filter(e => /dimaqqqq[\n]*-?[012345] point/.exec(e.innerText)).map(e => {e.style.border = "2px solid yellow"})
"""Proposal Temporal Duration in Python"""
ISO_8601_PERIOD = re.compile(
r"""
^
((?P<sign>-)|[+])?
P
((?P<years>\d+)Y)?
((?P<months>\d+)M)?
((?P<weeks>\d+)W)?
name: "Docker Tag"
description: "Computes docker tag for this branch (latest,release,etc.)"
outputs:
tag:
description: "Docker tag for this branch"
runs:
using: "node16"
main: "main.js"
# Thinkpad X1 has two middle buttons:
# area at the bottom of the touchpad
# and physical buttons above touchpad that are part of trackpoint
function fix_middle_button -d "remap middle buttons to prmiary"
string match -r 'Touchpad.*id=(?<id>[0-9]+)' (xinput list)
if test -n "$id";
xinput set-button-map "$id" 1 1 3 4 5 6 7 8 9 10 11 12
end