aria2.conf
as/etc/aria2.conf
aria2.sh
as/etc/init.d/aria
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button id="openModal">Open Modal</button> | |
<div id="modal" class="modal"> | |
<div class="modal-content"> | |
<span class="close">×</span> | |
<div class="iframe-container"> | |
<iframe src="https://www.example.com/iframe1"></iframe> | |
<iframe src="https://www.example.com/iframe2"></iframe> | |
</div> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
# A group of N integer numbers need to be divided fairly into K subgroups. | |
# A fair division is that the max of the sums of K subgroups is minimal? | |
# greedy algorithm | |
def partitioning(n, k): | |
a = sum(n) / k | |
nums = sorted(n, reverse=True) | |
groups = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A group of N integer numbers need to be divided fairly into K subgroups. | |
# A fair division is that the max of the sums of K subgroups is minimal | |
def grouping(n, k): | |
a = sum(n) / k | |
nums = sorted(n, reverse=True) | |
groups = [] | |
gsums = [] | |
for _ in range(k): |