Skip to content

Instantly share code, notes, and snippets.

@fabio-filho
fabio-filho / CardViewCollapsible.kt
Created April 13, 2018 18:03
Card View Easy Collapsible - With Kotlin =D
// Usage - MainActivity
val collapsible = myCardView.buildCollapsible()
myButton.onClick {
collapsible.toggle()
}
// ============================================================================================================================
package your_package
import android.animation.ValueAnimator
import android.support.v7.widget.CardView
@prasanthj
prasanthj / lirc-pi3.txt
Last active June 20, 2024 10:09
Getting lirc to work with Raspberry Pi 3 (Raspbian Stretch)
Notes to make IR shield (made by LinkSprite) work in Raspberry Pi 3 (bought from Amazon [1]).
The vendor has some documentation [2] but that is not complete and sufficient for Raspbian Stretch.
Following are the changes that I made to make it work.
$ sudo apt-get update
$ sudo apt-get install lirc
# Add the following lines to /etc/modules file
lirc_dev
lirc_rpi gpio_in_pin=18 gpio_out_pin=17