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
// go to https://twitter.com/your-username, and enter the following into the developer console: | |
for(var i = 1; i < 500; i++){ // just do it a bunch | |
// Un retweet | |
document.getElementsByClassName("ProfileTweet-actionButtonUndo")[i].click(); | |
document.getElementsByClassName("js-close")[0].click(); | |
// Delete tweets | |
document.getElementsByClassName("js-actionDelete")[i].childNodes[1].click(); | |
document.getElementsByClassName("delete-action")[0].click() | |
} |
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
For the microscope images, we can use a binary matrix where each pixel | |
corresponds to either black or white. | |
For the dye sensor images, we can use a sparse representation. | |
We’ll only store the coordinates (x, y) where the dye is detected, instead of storing the entire image. | |
We can use a list of tuples or a dictionary | |
Microscope image: 100,000 x 100,000 bits | |
Dye sensor image (sparse representation): Depends on the number of dye-detected pixels. |