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 | |
| im = Image.open('bulk.png', 'r') | |
| pix_val = list(im.getdata()) #read pixel values | |
| pix_val_flat = [x for sets in pix_val for x in sets] #flatten the list | |
| pix_val_flat = list(filter((0).__ne__, pix_val_flat)) #filter 0 | |
| text = ''.join(chr(i) for i in pix_val_flat) #covert to ASCII | |
| print(text) |
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 requests | |
| import itertools | |
| def cc(s): | |
| return (''.join(t) for t in itertools.product(*zip(s.lower(), s.upper()))) | |
| str = "ewwfroa" | |
| strlst = list(cc(str)) |
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
| td.o { | |
| background-image: url(https://i.imgur.com/fBXvY6J.png); | |
| background-color: #f69627; | |
| ... | |
| ... | |
| } |
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
| <!DOCTYPE html> | |
| <!-- saved from url=(0042)https://53yzmnwxw4.codesandbox.io/index.js --> | |
| <html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Sandbox - CodeSandbox</title><link rel="manifest" href="https://53yzmnwxw4.codesandbox.io/manifest.json"><link rel="shortcut icon" href="https://53yzmnwxw4.codesandbox.io/favicon.ico"><style id="detectElementResize" type="text/css">@keyframes resizeanim { from { opacity: 0; } to { opacity: 0; } } .resize-triggers { animation: 1ms resizeanim; visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }</style></head><body style="position: relative;"><style> | |
| body { | |
| background-c |