The lamp will light up if all switches are either ON or OFF. You do not know what the initial state of each switch.
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
[ | |
{"name": "happy", "icon": "https://static.xx.fbcdn.net/rsrc.php/v3/yK/r/Iu45bu7idw4.png"}, | |
{"name": "blessed", "icon": "https://static.xx.fbcdn.net/rsrc.php/v3/yd/r/SbLxX4jljCS.png"}, | |
{"name": "loved", "icon": "https://static.xx.fbcdn.net/rsrc.php/v3/yB/r/jnaR01aXOKF.png"}, | |
{"name": "sad", "icon": "https://static.xx.fbcdn.net/rsrc.php/v3/y0/r/MqU4w6kG_-T.png"}, | |
{"name": "lovely", "icon": "https://static.xx.fbcdn.net/rsrc.php/v3/yB/r/jnaR01aXOKF.png"}, | |
{"name": "thankful", "icon": "https://static.xx.fbcdn.net/rsrc.php/v3/yb/r/8HG4ArhYqqm.png"}, | |
{"name": "excited", "icon": "https://static.xx.fbcdn.net/rsrc.php/v3/yl/r/GTVH05GEVXD.png"}, | |
{"name": "in love", "icon": "https://static.xx.fbcdn.net/rsrc.php/v3/yB/r/jnaR01aXOKF.png"}, | |
{"name": "crazy", "icon": "https://static.xx.fbcdn.net/rsrc.php/v3/yL/r/D5AOH5Rt9K8.png"}, |
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
import androidx.recyclerview.selection.SelectionTracker | |
fun SelectionTracker<Long>.selectFirst() { | |
select(0) | |
} | |
fun <T> SelectionTracker<Long>.selectLast(list: List<T>) { | |
select(list.lastIndex.toLong()) | |
} |
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
package com.eladfinish.googlesheet2json | |
import com.google.gson.Gson | |
import com.google.gson.JsonElement | |
import com.google.gson.annotations.SerializedName | |
import com.google.gson.reflect.TypeToken | |
import io.reactivex.Single | |
import retrofit2.http.GET | |
import retrofit2.http.Path | |
import retrofit2.http.Query |