░█████╗░░██████╗░█████╗░██╗██╗ ░█████╗░██████╗░████████╗░██████╗
██╔══██╗██╔════╝██╔══██╗██║██║ ██╔══██╗██╔══██╗╚══██╔══╝██╔════╝
███████║╚█████╗░██║░░╚═╝██║██║ ███████║██████╔╝░░░██║░░░╚█████╗░
██╔══██║░╚═══██╗██║░░██╗██║██║ ██╔══██║██╔══██╗░░░██║░░░░╚═══██╗
██║░░██║██████╔╝╚█████╔╝██║██║ ██║░░██║██║░░██║░░░██║░░░██████╔╝
╚═╝░░╚═╝╚═════╝░░╚════╝░╚═╝╚═╝ ╚═╝░░╚═╝╚═╝░░╚═╝░░░╚═╝░░░╚═════╝░
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
#!/bin/bash | |
# MIME type of the file | |
mime=$(file --mime-type -b "$1" 2>/dev/null) | |
# Handle different MIME types | |
case "$mime" in | |
text/*) | |
# Use vim for text files | |
vim "$1" |
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
# uses 'gh', 'fzf' and 'bat' | |
gh search code $'#compdef fzf' \ | |
--filename '_fzf' \ | |
--json repository,path \ | |
--jq '.[] | [.repository.nameWithOwner, .path] | @tsv' | | |
fzf --delimiter '\t' --with-nth 1 \ | |
--preview 'gh api --cache 10m repos/{1}/contents/{2} \ | |
--jq .content | base64 --decode | bat --language zsh --number' \ | |
--preview-window 'nohidden:right:wrap:75%' \ | |
--bind 'ctrl-b:execute-silent:gh browse --repo {1} {2}' |
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
// kuntau | |
// api.unmap('>>'); | |
// api.unmap('<<'); // tab shifting | |
api.iunmap(":"); // disable emoji autocomplete | |
/// an example to create a new mapping `ctrl-y` | |
api.mapkey('<ctrl-y>', 'Show me the money', function() { | |
Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).'); | |
}); |
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
" Type :help nv for help. | |
" set ignorecase | |
set smartcase | |
set winaltkeys=menu | |
let mapleader=<Space> | |
nnoremap <leader><bar> <C-w><bar> | |
nnoremap <leader>= <C-w>= | |
nnoremap <leader>_ <C-w>_ |
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
<style> | |
.bar { | |
width: 25px; | |
height: 100px; | |
/* Add your code below this line */ | |
/* Add your code above this line */ | |
display: inline-block; | |
background-color: blue; |
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
:root, [data-color-mode="dark"][data-dark-theme="light"], [data-color-mode="light"], [data-color-mode="light"][data-light-theme="light"] { | |
--color-scale-black: #1b1f23; | |
--color-scale-white: #fff; | |
--color-scale-gray-0: #fafbfc; | |
--color-scale-gray-1: #f6f8fa; | |
--color-scale-gray-2: #e1e4e8; | |
--color-scale-gray-3: #d1d5da; | |
--color-scale-gray-4: #959da5; | |
--color-scale-gray-5: #6a737d; | |
--color-scale-gray-6: #586069; |
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
{ | |
"title": "Kuntau Left Ctrl Hyper Mods", | |
"rules": [ | |
{ | |
"description": "F20 : (HYPER) SHIFT+COMMAND+OPTION+CONTROL or ESCAPE (If Alone)", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "f20", | |
"modifiers": { |
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
// PENDING TESTING.. | |
// Get pathname | |
var pathName = window.location.pathname; | |
getLastSegment = function(pathName) { | |
// declare local | |
var lastSegment = -1; //false by default | |
// Check if we even have a pathname |
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
bind-key -T copy-mode C-Space send-keys -X begin-selection | |
bind-key -T copy-mode C-a send-keys -X start-of-line | |
bind-key -T copy-mode C-b send-keys -X cursor-left | |
bind-key -T copy-mode C-c send-keys -X cancel | |
bind-key -T copy-mode C-e send-keys -X end-of-line | |
bind-key -T copy-mode C-f send-keys -X cursor-right | |
bind-key -T copy-mode C-g send-keys -X clear-selection | |
bind-key -T copy-mode C-k send-keys -X copy-end-of-line | |
bind-key -T copy-mode C-n send-keys -X cursor-down | |
bind-key -T copy-mode C-p send-keys -X cursor-up |
NewerOlder