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
| from PIL import Image | |
| size = (1280,1280) | |
| img = Image.new(mode='RGBA',size=size,color=(255,128,255,128)) | |
| pixels = img.load() | |
| for x in range(size[0]): | |
| for y in range(size[1]): |
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 random | |
| print( | |
| """ | |
| This script simulates this scenario: | |
| you have a die of N faces | |
| you have Y quantity of that die | |
| what is the average of X rolls, | |
| taking the highest value of all | |
| dies for that roll? |
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
| /* Vars. */ | |
| :root { | |
| --main-color: #ffa494; | |
| --background-color: rgb(0, 0, 0); | |
| } | |
| /* Rounded Edges. */ | |
| #app-mount { | |
| border-radius: 20px; | |
| background-color: transparent; | |
| } |
OlderNewer