Skip to content

Instantly share code, notes, and snippets.

View jonatbergn's full-sized avatar
😊
gyshido

Jonathan Bergen jonatbergn

😊
gyshido
  • Hannover, Germany
View GitHub Profile
@DoomyTheFroomy
DoomyTheFroomy / PollenAlarm.js
Last active February 27, 2024 07:31
Scriptable Widget to display the pollen state in Germany
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-purple; icon-glyph: tree;
/* global Location args config Script ListWidget Font Color Request */
const pollenUrl = 'https://opendata.dwd.de/climate_environment/health/alerts/s31fg.json'
const regions = {
10: 'Schleswig-Holstein und Hamburg',
11: 'Inseln und Marschen',
@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active May 10, 2024 15:01
[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()
 }
@elizarov
elizarov / Debounce.kt
Last active August 26, 2019 00:19
Debounce
import kotlinx.coroutines.experimental.DefaultDispatcher
import kotlinx.coroutines.experimental.channels.ReceiveChannel
import kotlinx.coroutines.experimental.channels.consumeEach
import kotlinx.coroutines.experimental.channels.produce
import kotlinx.coroutines.experimental.delay
import kotlinx.coroutines.experimental.runBlocking
import kotlin.coroutines.experimental.CoroutineContext
fun <T> ReceiveChannel<T>.debounce(
wait: Long = 300,