Skip to content

Instantly share code, notes, and snippets.

View Hoffs's full-sized avatar
🦩
doom

Ignas Hoffs

🦩
doom
  • Lithuania
View GitHub Profile
[
{
"key": "ctrl+p",
"command": "-workbench.action.quickOpen"
},
{
"key": "ctrl+p",
"command": "-workbench.action.quickOpenNavigateNextInFilePicker",
"when": "inFilesPicker && inQuickOpen"
},
@Hoffs
Hoffs / sort.js
Last active September 22, 2019 09:51
sorts wolt restarurant cards by delivery price descending, class names probably change, so :(
listClass = '.ListPage__list___24Dl6';
priceClass = 'WideVenueBanner__roughDelivery___2K1oP';
function sortByPrice(aNode, bNode) {
const aText = aNode.getElementsByClassName(priceClass)[0].innerText;
const bText = bNode.getElementsByClassName(priceClass)[0].innerText;
return aText.localeCompare(bText);
}
function sortCards() {
@Hoffs
Hoffs / vim-shortcuts.md
Created January 17, 2020 20:10 — forked from tuxfight3r/vim-shortcuts.md
VIM SHORTCUTS

VIM KEYBOARD SHORTCUTS

MOVEMENT

h        -   Move left
j        -   Move down
k        -   Move up
l        -   Move right
$        -   Move to end of line
0        -   Move to beginning of line (including whitespace)