Skip to content

Instantly share code, notes, and snippets.

@evdokimovm
evdokimovm / index.js
Last active September 26, 2025 16:21
Save the whole list of your saved youtube playlists to text file. Open youtube.com/feed/library or youtube.com/feed/you press "show more" in playlists section. scroll page down to load all playlists list and run the following script in console
var saving_playlist = window.location.href.includes('/playlist?list=')
var all_contents =
saving_playlist ?
document.querySelectorAll('div#contents > ytd-playlist-video-renderer > div#content > div#container > div#meta')
:
document.querySelectorAll("#content > yt-lockup-view-model > div > div > yt-lockup-metadata-view-model > div.yt-lockup-metadata-view-model-wiz__text-container")
var format = '.txt'
@lukaseder
lukaseder / CallDefaultMethodThroughReflection.java
Created March 28, 2018 09:56
Correct Reflective Access to Interface Default Methods in Java 8, 9, 10
// Compile on JDK 9 or 10 with javac -source 1.8 -target 1.8 CallDefaultMethodThroughReflection.java
// Blog post here: https://blog.jooq.org/2018/03/28/correct-reflective-access-to-interface-default-methods-in-java-8-9-10
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodHandles.Lookup;
import java.lang.invoke.MethodType;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
@virtualadrian
virtualadrian / git_cheat_sheet.md
Last active July 22, 2018 16:03
git cheat sheet

GIT CHEAT SHEET

A humble attempt to create a easy on the eye, skimable git cheat sheet. Please comment with requests, improvement suggestions or corrections.

Starting a Repo init/clone/remote

Create or Initialize a repo from existing code or files

git init

Clone a current repo (into a folder with same name as repo)

@virtualadrian
virtualadrian / GenerateEntityPOJO.groovy
Last active October 24, 2023 08:13
IntelliJ Generators For Entity ( JPA Entity, View Model, Rest Controller ) - WIP plz comment with desires -
import com.intellij.database.model.DasTable
import com.intellij.database.model.ObjectKind
import com.intellij.database.util.Case
import com.intellij.database.util.DasUtil
/*
* Available context bindings:
* SELECTION Iterable<DasObject>
* PROJECT project
* FILES files helper