Skip to content

Instantly share code, notes, and snippets.

View illvart's full-sized avatar
💭
i might respond slowly

va illvart

💭
i might respond slowly
View GitHub Profile
@illvart
illvart / donations.md
Created January 8, 2026 06:19
My cryptocurrency wallet addresses for donations

Cryptocurrency Donation Addresses

If you’d like to support me or my projects, feel free to donate using any of the cryptocurrencies below.

Thank you for your support!

Donation via Binance Pay

Binance ID: 380504195

BTC (Bitcoin Network)

@illvart
illvart / 0-vscode-extensions-backup.md
Created January 7, 2026 15:53
VSCode - Visual Studio Code extensions backup

VSCode - Visual Studio Code extensions backup

If you are use Unix/Linux create a bash script with a loop. In this case I want to backup the extensions list and install again:

First create a list of the extensions:

$ code --list-extensions > extensions.txt

Create a bash script for example with the name vscode-extension-install.sh and input the following code:

@illvart
illvart / timezones.txt
Created July 19, 2025 01:44
List all timezones of pytz
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
Africa/Asmara
Africa/Asmera
Africa/Bamako
Africa/Bangui
Africa/Banjul
Africa/Bissau
@illvart
illvart / git-io.md
Last active November 16, 2020 19:52
https://git.io custom shortener name
@illvart
illvart / regexCheatsheet.js
Created December 17, 2019 12:01 — forked from sarthology/regexCheatsheet.js
A regex cheatsheet 👩🏻‍💻 (by Catherine)
let regex;
/* matching a specific string */
regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello"
regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO"
regex = /hello/g; // looks for multiple occurrences of string between the forward slashes...
/* wildcards */
regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo"
regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo"
@illvart
illvart / regex.md
Created December 17, 2019 11:44 — forked from vitorbritto/regex.md
Regex Cheat Sheet

Regular Expressions

Basic Syntax

  • /.../: Start and end regex delimiters
  • |: Alternation
  • (): Grouping
@illvart
illvart / client.js
Created November 23, 2019 10:37 — forked from aerrity/client.js
Node, Express & MongoDB: Button click example
console.log('Client-side code running');
const button = document.getElementById('myButton');
button.addEventListener('click', function(e) {
console.log('button was clicked');
fetch('/clicked', {method: 'POST'})
.then(function(response) {
if(response.ok) {
console.log('click was recorded');
@illvart
illvart / smooth-scrolling-polyfill.md
Created November 14, 2019 19:58 — forked from eyecatchup/smooth-scrolling-polyfill.md
Smooth Scroll behavior polyfill

The Scroll Behavior specification has been introduced as an extension of the Window interface to allow for the developer to opt in to native smooth scrolling. To date this has only been implemented in Chrome, Firefox and Opera.

There's a complete polyfill here (3.3KB minified). But most of the times, the following is enough for me (641 bytes minified):

smooth-scrolling-poyfill.js

Use as: scrollToElem('#elem-selector');

@illvart
illvart / gist:2605049998e9c787774e43ccb4dc5ddf
Created July 10, 2019 05:03 — forked from paulirish/gist:5558557
a brief history of detecting local storage

A timeline of the last four years of detecting good old window.localStorage.


Jan Lenhart, bless his heart contributed the first patch for support:

October 2009: 5059daa

@illvart
illvart / svg-classes.js
Created January 11, 2019 15:41 — forked from branneman/svg-classes.js
SVG — hasClass, addClass, removeClass, toggleClass
//
// SVG — hasClass, addClass, removeClass, toggleClass
// Source:
// https://gist.github.com/branneman/8436956
// Taken and adapted from:
// http://toddmotto.com/hacking-svg-traversing-with-ease-addclass-removeclass-toggleclass-functions/
//
if (SVGElement && SVGElement.prototype) {