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
registries: | |
- endpoint: https://index.docker.io/v1/ | |
auth: base64encodedstring | |
email: my.email@gmail.com | |
repository: username/repo | |
The first three fields can be generated by running $ docker login <registry>. The last field would provide the basis for populating all the searchable tags. |
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
easy_partition(keys, T) | |
B = [] | |
A = [] | |
B_s = 0 | |
A_s = 0 | |
keys = sort(keys) | |
while len(keys) > 0 | |
k = pop_biggest(keys) | |
if B_s + k > T: | |
if A_s + k > T: |