Skip to content

Instantly share code, notes, and snippets.

View smileart's full-sized avatar
:octocat:
Work In Progress

Serge Bedzhyk smileart

:octocat:
Work In Progress
View GitHub Profile
@smileart
smileart / spoiler-callout.css
Last active July 17, 2024 07:18
Obsidian Custom Spoiler Callout CSS Snippet
-- Simple version
[data-task="#"] {
filter: blur(8px);
-webkit-filter: blur(8px);
}
[data-task="#"]:hover {
filter: none;
-webkit-filter: none;
@smileart
smileart / Day_1.md
Last active November 14, 2023 08:06
Euruko 2023
@smileart
smileart / README.md
Created August 8, 2023 17:16
🇺🇦 Ruscism.plist :: MacOS text replacement preset to be able to talk about ᵣussia online

Ruscism – also known as Rashism, Russism, or ᵣussian fascism, is a term used by a number of scholars, politicians and publicists to describe the political ideology and the social practices of the ᵣussian state in the late 20th and early 21st centuries, especially during the rule of vladimir putin. — Ruscism

Russophobia – Anti-ᵣussian sentiment, commonly referred to as Russophobia, is dislike or fear or hatred of ᵣussia, the ᵣussians, ᵣussian culture, or ᵣussian policy. The Collins English Dictionary defines it as intense and often irrational hatred of ᵣussia. It is often related to anti-Soviet and occasionally also to anti-Slavic sentiment. The opposite of Russophobia is Russophilia. — Russophobia

drawing © https://snowowl.kiev.ua<

@smileart
smileart / amazon_books_scraper.js
Created July 11, 2023 12:02
A script to scrape Digital Content Lists from Amazon
// NOTE: It's supposed to be used in DevTools console only, depends on `copy`, `$`, `$$`, etc.
// NOTE: these backups needed cause after a new page loaded $, $$, etc. are undefined for the script running 🤷‍♂️
const selector = $
const selectorAll = $$
const clipboardCopy = copy
let allBooksList = []
function scrapBooks() {
const titles = selectorAll('.digital_entity_title').map((b)=>{ return b.innerText })
@smileart
smileart / rpsls.py
Created January 18, 2023 19:21
Rock Paper Scissors Lizard Spock :: Python Version
import random
##
# Rock Paper Scissors Lizard Spock ASCII Art
#
# Rock
rock = """
_______
@smileart
smileart / RPS_ASCII_Art.py
Last active January 11, 2023 14:41 — forked from wynand1004/RPS_ASCII_Art.py
Rock, Paper, Scissors ASCII Art
# Rock
print("""
_______
---' ____)
(_____)
(_____)
(____)
---.__(___)
@smileart
smileart / github_butternut_squash.js
Last active November 9, 2022 19:09
🎃 A user-script to auto-choose "Auto-merge Squash" in the PR unless it's a release PR
// ==UserScript==
// @name Butternut Squash
// @namespace http://tampermonkey.net/
// @version 0.3
// @description Choose Auto-merge Squash unless it's a release PR
// @author Serge Bedzhyk
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.io
// @match https://github.com/*
// ==/UserScript==
@smileart
smileart / parse_fields.rb
Last active February 3, 2021 16:22
A little AWK-like method to parse fields in a string of text
text = <<~DOC
ID Name Type Size Date
735557379 Mitch Murder - Kung Fury (Lost Tapes) - 2015 FOLDER 38.37 MB 8 months ago
589243897 A Game Of Thrones ~ Books 1-5 EPUB,MOBI & PDF [GrYff0N] FOLDER 83.36 MB 2 years ago
735557525 VA - Kung Fury (2015) FOLDER 109.84 MB 8 months ago
819683233 19000 FOLDER 1.77 GB 2 days ago
819682329 18000 FOLDER 3.12 GB 2 days ago
819681592 17000 FOLDER 4.23 GB 2 days ago
784060241 Doctor.Who.2005.S12.1080p.BluRay.x264-SHORTBREHD FOLDER 31.73 GB 2 months ago
601795129 chill.institute FOLDER 51.66 GB 2 days ago