Skip to content

Instantly share code, notes, and snippets.

View UsmonWasTaken's full-sized avatar
:shipit:
Working on side projects.

Usmon Abdurakhmanov UsmonWasTaken

:shipit:
Working on side projects.
View GitHub Profile
@stevdza-san
stevdza-san / Converters.kt
Last active March 31, 2024 10:09
@TypeConverter
class Converters {
@TypeConverter
fun fromBitmap(bitmap: Bitmap): ByteArray {
val outputStream = ByteArrayOutputStream()
bitmap.compress(Bitmap.CompressFormat.PNG, 100, outputStream)
return outputStream.toByteArray()
}
@TypeConverter
@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active July 23, 2024 02:21
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }