Skip to content

Instantly share code, notes, and snippets.

View elfifo4's full-sized avatar

Elad Finish elfifo4

View GitHub Profile
@elfifo4
elfifo4 / facebook_feeling_list.json
Created November 14, 2021 17:14
Facebook feeling list
[
{"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"},
@elfifo4
elfifo4 / SelectionTrackerExt.kt
Created July 1, 2021 07:42
SelectionTracker Kotlin extensions for selecting all items in RecyclerView
import androidx.recyclerview.selection.SelectionTracker
fun SelectionTracker<Long>.selectFirst() {
select(0)
}
fun <T> SelectionTracker<Long>.selectLast(list: List<T>) {
select(list.lastIndex.toLong())
}
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
@elfifo4
elfifo4 / 4-on-off-switches-and-lamp.markdown
Created April 1, 2019 21:26
4 on/off switches and lamp

4 on/off switches and lamp

The lamp will light up if all switches are either ON or OFF. You do not know what the initial state of each switch.

A Pen by elfifo4 on CodePen.

License.