- AGB-001
- ASS101 screen
This file contains 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
augroup SwapfileManagement " From a tpope snippet. | |
autocmd! | |
" The trick is that resetting 'swapfile' deletes the swapfile. | |
" The if is most likely for the cases when dir is nuked while editing | |
autocmd CursorHold,BufWritePost,BufReadPost,BufLeave * | |
\ if isdirectory(expand("<amatch>:h")) | | |
\ let &swapfile = &modified | endif | |
augroup END |
This file contains 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/env python3 | |
""" | |
Convert values between RGB hex codes and xterm-256 color codes. | |
Nice long listing of all 256 colors and their codes. Useful for | |
developing console color themes, or even script output schemes. | |
The legacy version uses naive euclidean distance in rgb space, | |
the non-legacy version uses naive euclidean distance in hsv space, manually |
This file contains 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
;;; colortrans.el --- simple conversion tool between truecolor and xterm | |
;; -*- coding: utf-8; lexical-binding: t; -*- | |
;; Copyright © 2019, by Gerry Agbobada | |
;; Author: Gerry Agbobada ( [email protected] ) | |
;; Version: 0.0.1 | |
;; Created: 09 May 2019 | |
;; Keywords: color |
This file contains 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
#include <stdio.h> | |
#include <curses.h> | |
#include <ncurses.h> | |
#include <locale.h> | |
#include <wchar.h> | |
int main() | |
{ | |
setlocale(LC_CTYPE, ""); initscr(); raw(); noecho(); keypad(stdscr, TRUE); | |
wint_t c; |
This file contains 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/env python3 | |
from typing import NewType | |
Atom = NewType("Atom", float) | |
Seconds = NewType("Seconds", float) | |
# Network parameters that affect the formula | |
# Target bonded ratio of ATOMs | |
TARGET_BONDED_RATIO = 0.67 |
This file contains 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
;;; ligature-bug-light.el --- Reproduce an autocomposition bug -*- lexical-binding: t; -*- | |
;;; Commentary: | |
;; | |
;; Reproducer for the composition table bug | |
;; | |
;;;; Method | |
;; | |
;; Evaluate the file | |
;; Expected : "=> testing overlays" is displayed at some point and disappear | |
;; Actual : inifinite looping, trying to "shape unibyte text", |
This file contains 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
{ | |
"label": "BÉPO Dox", | |
"fingerStart": { | |
"1": 29, | |
"2": 30, | |
"3": 31, | |
"4": 32, | |
"5": 66, | |
"6": 75, | |
"7": 35, |