Skip to content

Instantly share code, notes, and snippets.

View hamorillo's full-sized avatar
🏔️

Héctor Abraham Morillo Prieto hamorillo

🏔️
View GitHub Profile
@hamorillo
hamorillo / jnx.py
Created December 30, 2020 19:51 — forked from jn0/jnx.py
Sample JNX parser
#!/usr/bin/env python3
'''
Garmin JNX as of http://whiter.brinkster.net/JNX.shtml
'''
import logging; log = logging.getLogger('JNX' if __name__ == '__main__' else __name__)
import sys
import os
import struct
import json
@hamorillo
hamorillo / EndlessRecyclerOnScrollListener.kt
Created July 17, 2018 09:54
Endless RecyclerView OnScrollListener
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
abstract class EndlessRecyclerOnScrollListener(private val layoutManager: LinearLayoutManager):RecyclerView.OnScrollListener(){
companion object {
const val VISIBLE_THRESHOLD = 2
}
private var loading = true