Skip to content

Instantly share code, notes, and snippets.

View arstagaev's full-sized avatar
🌌
Mad respect for the makers of things

Arsen Tagaev arstagaev

🌌
Mad respect for the makers of things
View GitHub Profile
@arstagaev
arstagaev / gist:0d8e8e220f41db48cbe8d5a1cfbb667b
Created October 9, 2023 21:07
Install Apps by adb Wi-Fi in Wear OS //
nano ~/.zshrc
enter:
export ANDROID_HOME="$HOME/Library/Android/sdk"
export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH"
source ~/.zshrc
adb devices
adb pair 192.168.##.##:#####
@arstagaev
arstagaev / codes.md
Created April 27, 2022 19:37
BLE-Status-Codes

This table based of information from:

(New) - is mark for new interpretation of this status code, may be repeated codes, because we have different interpretation from different sources of some codes

Status Status Hex Description Explanation
@arstagaev
arstagaev / simple_observer.kt
Created May 7, 2022 10:01 — forked from wesleybliss/simple_observer.kt
Simple Kotlin Observer Pattern
interface Observer<T> {
fun onChange(newValue: T?)
}
class Observable<T>(initialValue: T? = null) {
// List ov observers watching this value for changes
private val observers = mutableListOf<Observer<T>>()
// The real value of this observer
This table based of information from:
* https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v2.0.0%2Fgroup___b_l_e___h_c_i___s_t_a_t_u_s___c_o_d_e_s.html
* http://allmydroids.blogspot.com/2015/06/android-ble-error-status-codes-explained.html
* My experience of work with BLE Tags
(New) - is mark for new interpretation of this status code, may be repeated codes, because we have different interpretation from different sources of some codes
Status| Status Hex |Description| Explanation
---|-------|-----------------------------------------------------|---------
@arstagaev
arstagaev / Git Notes
Created July 28, 2020 19:12
For git & get ssh key
git init
git remote rm origin
git remote add origin https://github.com/ArsMarsX/wt
git commit -m "initial commit"
git push origin master
@arstagaev
arstagaev / gist:ad5cfd68997134cd1788e0b5ac56cea0
Created September 30, 2019 09:42
marquee. Бегущая строка
res/layout/marquee_example.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/marque_scrolling_text"