Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Mohsen Teymouri Mohsents

I may be slow to respond.
  • Iran, Mashhad
View GitHub Profile
burnoo / Jetpack Compose two-way data binding.kt
Last active Oct 13, 2022
Jetpack Compose two-way data binding
View Jetpack Compose two-way data binding.kt
private class MutableStateAdapter<T>(
private val state: State<T>,
private val mutate: (T) -> Unit
) : MutableState<T> {
override var value: T
get() = state.value
set(value) {

Thread Pools

Thread pools on the JVM should usually be divided into the following three categories:

  1. CPU-bound
  2. Blocking IO
  3. Non-blocking IO polling

Each of these categories has a different optimal configuration and usage pattern.

stvhwrd /
Last active Jan 22, 2023
Download an entire website for offline use with wget. Internal inks will be corrected so that the entire downloaded site will work as it did online.

The best way to download a website for offline use, using wget

There are two ways - the first way is just one command run plainly in front of you; the second one runs in the background and in a different instance so you can get out of your ssh session and it will continue.

First make a folder to download the websites to and begin your downloading: (note if downloading, you will get a folder like this: /websitedl/