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 h(html) { | |
| return html.replace(/<p>/g, '\n\n') | |
| .replace(/<\/p>/g, '') | |
| .replace(/<b>/g, '**') | |
| .replace(/<\/b>/g, '**') | |
| .replace(/<i>/g, '_') | |
| .replace(/<\/i>/g, '_') | |
| .replace(/<code[^>]*>/g, (match) => { | |
| const lm = match.match(/class="[^"]*language-([^"]*)"/); | |
| return lm ? '\n```' + lm[1] + '\n' : '```'; |
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
| var style = document.createElement('style'); | |
| style.innerHTML = '.text-base { max-width: 100% !important; padding-left: 20px !important; padding-right: 20px !important; }'; | |
| document.head.appendChild(style); |
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
| [user] | |
| name = git | |
| email = your_preferred@email.email | |
| [alias] | |
| ac = "!git add . && git commit -m" | |
| pom = push origin main | |
| lom = pull origin main | |
| rao = remote add origin | |
| lomauh = pull origin main --allow-unrelated-histories |
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
| #Requires AutoHotkey v2.0 | |
| #SingleInstance Force | |
| #Warn ; Enable warnings to assist with detecting common errors | |
| ; ======= NOTES ABOUT SCRIPT =========== | |
| ; This script has the following features | |
| ; Programmer Ryvak keyboard features | |
| ; center mouse with middle mouse button or ctrl+alt+m | |
| ; numpad navigation when num lock off |
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 () {} class { constructor () {} } console.log(`${this.id}`); if obj.item != null item++ else { item-- } file-name.txt is < __proto__.method line; "quote 'inside'" path/your_file/ is? not? 2^5 == 4*4*3^5 if !== null && is valid || path\file_name\ -Recurse function () {} class { constructor () {} } console.log(`${this.id}`); if (obj.item != null) { item++; } else { item--; } file-name.txt is < __proto__.method line; "quote 'inside'" path/your_file/ is? not? 2^5 == 4*4*3^5 if (!== null) #prvate int mod 5 % 2 = 3 % 5 child ~ element {} nth-ofType ~ sibling function () {} class { constructor () {} } console.log(`${this.id}`); if obj.item != null item++ else { item-- } file-name.txt is < __proto__.method line; "quote 'inside'" path/your_file/ is? not? 2^5 == 4*4*3^5 if !== null && is valid || path\file_name\ -Recurse function () {} class { constructor () {} } console.log(`${this.id}`); if (obj.item != null) { item++; } else { item--; } file-name.txt is < __proto__.method line; "quote 'inside'" path/your_ |
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
| [ | |
| { | |
| "_comment": "enable/disable VIM", | |
| "key": "alt+m", | |
| "command": "toggleVim", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "_comment": "works in windows, does it work in mac?", | |
| "key": "alt+t", |
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
| Here's how to install vim-plug in Git Bash: | |
| First, create the autoload directory: | |
| bashCopymkdir -p ~/.vim/autoload | |
| Then download the plug.vim file: | |
| bashCopycurl -fLo ~/.vim/autoload/plug.vim --create-dirs \ | |
| https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |
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
| #Requires AutoHotkey v2.0 | |
| #SingleInstance Force | |
| #Warn ; Enable warnings to assist with detecting common errors | |
| ; ======= NOTES ABOUT SCRIPT =========== | |
| ; This script has the following features | |
| ; Programmer Ryvak keyboard features | |
| ; ctrl+alt+m | |
| ; numpad navigation when num lock off ; reversed numpad for 123 on top row |
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 partial alphanumeric_keys | |
| xkb_symbols "basic" { | |
| name[Group1]= "Ryvak"; | |
| // Add the backtick/tilde key | |
| key <TLDE> { [ grave, asciitilde ] }; // backtick/tilde key | |
| // Numbers row - Using keycodes 10-21 | |
| key <AE01> { [ ampersand, 9 ] }; // keycode 10 (1 key) | |
| key <AE02> { [ bracketleft, 7 ] }; // keycode 11 (2 key) |
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
| <layout> | |
| <configItem> | |
| <name>ryvak</name> | |
| <shortDescription>ry</shortDescription> | |
| <description>Ryvak</description> | |
| <languageList> | |
| <iso639Id>eng</iso639Id> | |
| </languageList> | |
| </configItem> | |
| </layout> |
OlderNewer