This file contains hidden or 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 itertools as it | |
def group(iterable, size, fill=None): | |
yield from it.zip_longest(*[iter(iterable)] * size, fillvalue=fill) | |
if __name__ == '__main__': | |
print(*group(range(10), 3, 0), sep=', ') # -> (0, 1, 2), (3, 4, 5), (6, 7, 8), (9, 0, 0) |
This file contains hidden or 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
span[class*="roleColor"]::after { | |
content: ""; | |
background: linear-gradient(to right, transparent, currentColor 40%); | |
width: 100%; | |
height: 100%; | |
position: absolute; | |
opacity: .1; | |
left: 0; | |
top: 0; | |
border-radius: 10px; |
NewerOlder