Skip to content

Instantly share code, notes, and snippets.

View thedtvn's full-sized avatar

The DT thedtvn

View GitHub Profile
frolleks /
Last active July 14, 2024 07:46
How to decompile an Electron app

Let me tell you how easy it is to decompile an Electron app (that's closed source).



First of all, you find the install path of your Electron app. If you found it, find the resources folder. If you found it, you'll have to install asar globally, by running:

raws /
Created January 24, 2012 04:24
Weighted randomization in Java
import java.util.NavigableMap;
import java.util.Random;
import java.util.TreeMap;
public class WeightedCollection<E> {
private NavigableMap<Integer, E> map = new TreeMap<Integer, E>();
private Random random;
private int total = 0;