Skip to content

Instantly share code, notes, and snippets.

View TejasSheth104's full-sized avatar
🎯
Focusing

Tejas Sheth TejasSheth104

🎯
Focusing
View GitHub Profile
@parkr
parkr / in-your-console.js
Last active August 22, 2024 16:26
delete your tweets and un-retweet tweets
// 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()
}
@TejasSheth104
TejasSheth104 / Q1-DataStructureRepresentation.txt
Last active June 1, 2024 19:56
DragonFruit - Software Engineering Challenge
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.