Zigbee https://blog.csdn.net/qq_34581118/article/details/78452316 0000 01010001 0000 0001 0101 = 1 * 2^4+ 1*2^2 + 1 = 21 = 0X15 12301 02 10 11 02 10 02 10 11 03 10 10 10 10 01 00 11 00 2018-06-20 ANDROID
VideoNDK 指针12345678910111213#include <stdio.h>#include <stdlib.h>int main(int argc, const char * argv[]) { // insert code here... char* p = (char*)malloc(10); //字符型指针 malloc堆空间分配内存 2018-06-14 ANDROID
Bluetooth03 经典蓝牙 低功耗蓝牙的区别http://www.loverobots.cn/the-analysis-is-simple-compared-with-the-classic-bluetooth-and-bluetooth-low-energy-in-android.html 蓝牙适配建议 蓝牙低功耗 Android 4.3 为发挥核心作用的蓝牙低功耗(蓝牙 LE)引入了平台支持。在 A 2018-06-11 BLE
DesignPatterns_Observer 原理图 奶站\天气站 用户 Observer观察者模式/订阅模式 PUSH 模式 1234567891 2018-06-06 DesignPattern
Singleton 单例模式 作用:一个类只有一个实例,减少内存开销 kotlin12345678910class Singleton private constructor() { private object HOLDER { val INSTANCE = Singleton() } companion object { 2018-06-06 DesignPattern
HashMap HashMapHash函数是指把⼀个⼤范围映射到⼀个⼩范围。把⼤范围映射到⼀个⼩范围的⽬的往往是为了 节省空间,使得数据容易保存。 HashMap扩容机制12345 int threshold; // 所能容纳的key-value对极限 final float loadFactor; // 负载因子 int modCount; i 2018-05-31 JAVA
Concurrency_Locking 锁的7大类偏向锁/轻量级锁/重量级锁; 偏向锁 如果自始至终,对于这把锁都不存在竞争,那么其实就没必要上锁,只需要打个标记就行了,这就是偏向锁的思想。 轻量级锁 JVM 开发者发现在很多情况下,synchronized 中的代码是被多个线程交替执行的,而不是同时执行的,也就是说并不存在实际的 竞争,或者是只有短时间的锁竞争,用 CAS 就可以解决, 2018-05-24 JAVA #concurrency
CaptureApp Charles抓包 按照这个地址配置 https://www.jianshu.com/p/e8dd1091d6d7 设置http代理 Https乱码问题 安装证书 断点修改代理这样就可以修改了 https://www.jianshu.com/p/0caaea590c8c Other -> keychain Access 还有设置就解决了https乱码的问题 http 2018-04-21 TOOL
Generics https://www.bilibili.com/video/BV1T441117u8 泛型继承类型1class Button extends TextView 不能把子类的List对象 ArrayList 赋值给父类的List引用 List Java ? extends TextView1234567891011121314151617 List<TextView> te 2018-04-16 JAVA
token rxjava 方式http://alighters.com/blog/2016/05/02/rxjava-plus-retrofitshi-xian-wang-luo-dai-li/http://alighters.com/blog/2016/08/22/rxjava-plus-retrofitshi-xian-zhi-demo/ 最流行的网络请求框架Rxjava2+Retrofit之Token处 2018-03-29 ANDROID