tags | ||
---|---|---|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://stackoverflow.com/questions/12562151/android-get-all-contacts | |
private void getContactList() { | |
ContentResolver cr = getContentResolver(); | |
Cursor cur = cr.query(ContactsContract.Contacts.CONTENT_URI, | |
null, null, null, null); | |
if ((cur != null ? cur.getCount() : 0) > 0) { | |
while (cur != null && cur.moveToNext()) { | |
String id = cur.getString( | |
cur.getColumnIndex(ContactsContract.Contacts._ID)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
#=================================================================# | |
# System Required: CentOS 6+, Debian 7+, Ubuntu 12+ # | |
# Description: One click Install Shadowsocks-Python server # | |
# Author: Teddysun <[email protected]> # | |
# Thanks: @clowwindy <https://twitter.com/clowwindy> # | |
# Intro: https://teddysun.com/342.html # | |
#=================================================================# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.icarbonx.healthbuddy.share.widget; | |
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.graphics.Paint; | |
import android.graphics.Rect; | |
import android.graphics.RectF; | |
import android.text.TextPaint; | |
import android.text.TextUtils; | |
import android.text.style.ReplacementSpan; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.graphics.Rect; | |
import android.graphics.drawable.Drawable; | |
import android.view.View; | |
import androidx.recyclerview.widget.GridLayoutManager; | |
import androidx.recyclerview.widget.RecyclerView; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UpdateRecyclerView implements Runnable { | |
WeakReference<RecyclerView> recyclerViewWeakReference; | |
UpdateRecyclerView(RecyclerView view) { | |
recyclerViewWeakReference = new WeakReference<>(view); | |
} | |
@Override | |
public void run() { | |
RecyclerView recyclerView = recyclerViewWeakReference.get(); |
https://zhuanlan.zhihu.com/p/24537759
这篇文章列出了比较完备的信息,但是楼主发现有一些重要的东西还是和其他类似文章一样没有点到 (也可能是过时了而最新的签证申请变了吧)
官方目前要求只需要offer letter,存款证明,护照,TB测试结果,雅思UKVI成绩单 (如果是英国认可的英语授课学历可以不需要雅思证明,这个具体怎么操作的楼主不太清楚),在线申请的时候会填基本信息(以及最重要的CoS号码)然后缴费(用支付宝就好,信用卡也行)。缴费后只需要打印checklist的那份表格就行了,然后带上它和材料一并去签证中心即可。
官方要求更简单,只需要A marriage certificate, or a reasonable equivalent, for XXX and XXX,护照,存款证明,TB测试结果即可。在线申请填完表格付款后打印checklist一并带着前往签证中心即可。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.sun.tools.attach.VirtualMachine; | |
public class AttachClient { | |
public static void main(String[] args) throws Exception { | |
String pid = args[0]; | |
VirtualMachine vm = VirtualMachine.attach(pid); | |
System.out.println("vm = " + vm); | |
vm.detach(); | |
} |