Skip to content

Instantly share code, notes, and snippets.

View creativearmenia's full-sized avatar

Sargis Saribekyan creativearmenia

View GitHub Profile
@creativearmenia
creativearmenia / Percentage.java
Created June 2, 2020 14:43 — forked from andrebreves/PercentageDistribution.java
Calculates correctly distributed percentages (that sums to 100%) of arrays, collections and maps of numbers.
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import static java.util.stream.Collectors.toMap;
import static java.util.stream.Collectors.toUnmodifiableList;
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]