Skip to content

Instantly share code, notes, and snippets.

View simonsso's full-sized avatar

Fredrik Simonsson simonsso

View GitHub Profile
@simonsso
simonsso / json_iterator.kt
Created March 19, 2020 05:37
JSON Ittrators
import json.JSONArray
import json.JSONObject
operator fun JSONArray.iterator(): Iterator<Any>
= (0 until length()).asSequence().map { get(it) }.iterator()
operator fun JSONObject.iterator(): Iterator<Pair<String,Any>>
= keys().asSequence().map{ it -> Pair(it,get(it)) }.iterator()
var dataList: ArrayList<String> = ArrayList();
@simonsso
simonsso / logcat
Last active February 22, 2020 02:45
Log from xiaomi mi max2 with show on lockscreen and pop up while in background denied -- Signal App version 4.56.1 local build
2020-02-22 11:18:35.893 28854-28942/org.thoughtcrime.securesms D/IncomingMessageObserver: Network requirement: true, app visible: false, gcm disabled: false
2020-02-22 11:18:35.906 28854-28854/org.thoughtcrime.securesms I/JobManager: onConstraintMet(NetworkConstraintObserver)
2020-02-22 11:18:36.005 28854-28942/org.thoughtcrime.securesms D/IncomingMessageObserver: Network requirement: true, app visible: false, gcm disabled: false
2020-02-22 11:18:36.011 28854-28854/org.thoughtcrime.securesms I/JobManager: onConstraintMet(NetworkConstraintObserver)
2020-02-22 11:22:03.935 28854-14012/org.thoughtcrime.securesms I/FcmService: FCM message... Delay: 1010
2020-02-22 11:22:03.947 28854-14012/org.thoughtcrime.securesms D/WakeLockUtil: Acquired wakelock with tag: signal:MessageRetriever
2020-02-22 11:22:03.952 28854-14012/org.thoughtcrime.securesms I/MessageRetriever: Attempting strategy: RestStrategy (3 ms elapsed)
2020-02-22 11:22:03.954 28854-14012/org.thoughtcrime.securesms D/IncomingMessageProcesso: Lock acquired
'use strict';
const e = React.createElement;
class LikeButton extends React.Component {
constructor(props) {
super(props);
this.state = { liked: false , s:props.xitem };
}
render() {