This file contains hidden or 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
class CommentsRecyclerViewAdapter : ListAdapter<PokemonVM, CommentsRecyclerViewAdapter.ViewHolder>(PokeDiff()) { | |
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder { | |
return ViewHolder( | |
ListViewItemPokemonBinding.inflate( | |
LayoutInflater.from(parent.context), parent, false)) | |
} | |
override fun onBindViewHolder(holder: ViewHolder, position: Int) { | |
val item = getItem(position) | |
holder.apply { |
This file contains hidden or 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
data class PokemonVM( | |
val app: Application, | |
val name: String, | |
val origin: String, | |
val avatar: Drawable | |
) { | |
val showDetails: ObservableBoolean = ObservableBoolean(false) | |
val description: ObservableField<String> = ObservableField("description placeholder") | |
fun onClick() { |
This file contains hidden or 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
Question 1 | |
https://raw.githubusercontent.com/jameslafa/mining-massive-datasets/master/Week%202%20-%20Frequent%20Itemsets.ipynb | |
arr = [(20000, 60000000), (20000, 80000000), (100000, 40000000), (100000, 100000000)] | |
hash = lambda n, m: (1000000 + m*3) * 4 | |
triangular = lambda n, m: (1000000 + (n**2) / 2.0) * 4 | |
[triangular(v[0], v[1]) for v in arr] | |
[hash(v[0], v[1]) for v in arr] |
This file contains hidden or 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
https://stackoverflow.com/questions/33245774/simple-ftp-client-c | |
https://randomnerdtutorials.com/esp32-pir-motion-sensor-interrupts-timers/ | |
https://randomnerdtutorials.com/esp32-cam-post-image-photo-server/#4 | |
https://dronebotworkshop.com/esp32-cam-intro/ | |
https://www.youtube.com/watch?v=T0P37aEneto | |
https://www.youtube.com/watch?v=-GDlk6qgQ_E |
This file contains hidden or 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
https://openwrt.org/toh/linksys/ea9500_v1 | |
https://firmware-selector.openwrt.org/?version=21.02.3&target=bcm53xx%2Fgeneric&id=linksys_ea9500 | |
https://serialize.wordpress.com/2017/02/01/linksys-ea9500-stuff/#flashing | |
https://downloads.openwrt.org/releases/21.02.3/targets/bcm53xx/generic/openwrt-21.02.3-bcm53xx-generic-linksys_ea9500-squashfs.trx | |
opkg update | |
# ddns | |
root@OpenWrt:~# opkg list | grep ddns |
OlderNewer