Skip to content

Instantly share code, notes, and snippets.

View Teddy-Zhu's full-sized avatar
💭
alive

Teddy_Zhu Teddy-Zhu

💭
alive
View GitHub Profile
if (!document.getElementById('printFrame').contentWindow.document.execCommand('print', false, null)) {
document.getElementById('printFrame').contentWindow.focus();
document.getElementById('printFrame').contentWindow.print();
}
;
(function (window, document) {
if (window.canvasqt == undefined)
window.canvasqt = {};
if (window.canvasqt.arrow != undefined)
return;
//旋转坐标
var scrollXoy = function (p, theta) {
替换国内204服务器
adb shell "settings put global captive_portal_server g.cn"
//开启飞行模式
settings put global airplane_mode_on 1
am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true
//关闭飞行模式
settings put global airplane_mode_on 0
am broadcast -a android.intent.action.AIRPLANE_MODE --ez state false
应用:
nexus 6p 国内激活时调过激活