Skip to content

Instantly share code, notes, and snippets.

View JakubBlaha's full-sized avatar
😛
I like the fact that private repos are free now!

Jakub Bláha JakubBlaha

😛
I like the fact that private repos are free now!
  • IDS
  • Brno, Czech Republic
View GitHub Profile
@JakubBlaha
JakubBlaha / delayedClass.ts
Created October 17, 2021 16:26
Svelte Action | Delayed Class
export function delayedClass(node: HTMLElement, options: { class: string; delay: number }) {
setTimeout(() => node.classList.add(options.class), options.delay);
}
@JakubBlaha
JakubBlaha / horizontalWheelScroll.ts
Created August 20, 2021 10:02
Svelte horizontal wheel scroll action
export const horizontalWheelScroll = (node: HTMLElement) => {
node.style.scrollBehavior = "smooth";
node.addEventListener("wheel", (evt) => {
evt.preventDefault();
node.scrollLeft += evt.deltaY;
});
};
@JakubBlaha
JakubBlaha / config.ini
Last active April 26, 2020 20:17
Python configparser boilerplate
[GENERAL]
playlist_url = 'https://example.com'
@JakubBlaha
JakubBlaha / tasks.json
Created April 24, 2020 09:55
Pipenv VS Code build task
{
"version": "2.0.0",
"tasks": [
{
"label": "Run",
"type": "shell",
"command": "${config:python.pythonPath} ./main.py",
"problemMatcher": [],
"group": {
"kind": "build",