Skip to content

Instantly share code, notes, and snippets.

@AITUncle
Created September 29, 2016 14:56
Show Gist options
  • Save AITUncle/af71f6f7fa96e7f61f46e6efe17712da to your computer and use it in GitHub Desktop.
Save AITUncle/af71f6f7fa96e7f61f46e6efe17712da to your computer and use it in GitHub Desktop.
daily
我的日志
@AITUncle
Copy link
Author

mysql union all
http://dev.mysql.com/doc/refman/5.7/en/union.html

explain 
select * from filelost where imei_crypt like "%32878681013683905766109117506828893802%"
union all
select * from filelost_1611 where imei_crypt like "%32878681013683905766109117506828893802%"
union all
select * from filelost_1612 where imei_crypt like "%32878681013683905766109117506828893802%"
union all
select * from filelost_1701 where imei_crypt like "%32878681013683905766109117506828893802%"

/*
select * from filelost_old where imei_crypt like "%32878681013683905766109117506828893802%"
*/

@AITUncle
Copy link
Author

android中当崩溃引发二次崩溃是:调用uncaughtException时,我们在调用系统默认的sDefaultHandler.uncaughtException(thread, ex)来处理时,并不会弹窗提示崩溃,而是直接闪退。

@AITUncle
Copy link
Author

AtomicBoolean.getAndSet(newValue) //返回原来旧的值,并设置新的值
AtomicBoolean.compareAndSet(expect,update) //只有返回为true时才会更新值为update,只有expect等于原来的值才会返回true

@AITUncle
Copy link
Author

AITUncle commented Dec 29, 2016

酷狗中,对音频文件计算hash的代码实现。

PreCalcHashValueRunnable.run

@AITUncle
Copy link
Author

潮汕地区,是广东省汕头市、潮州市、揭阳市三个地级市的统称

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment