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
var curIndex = -1; | |
function callbackDown(){ | |
if(curIndex >=0) $('input.hideItem_myx')[curIndex].click(); | |
curIndex++; | |
$('input.hideItem_myx')[curIndex].click(); | |
$('ul button.myx-button-text')[curIndex].click(); | |
//触发下载popup | |
setTimeout(function(){$('.myx-popover-inner .transcludedContent_myx .contentDetails_myx #contentAction_download_myx').trigger('click');},1000); | |
setTimeout(function(){$('.dialog_myx .myx-button-primary').trigger('click');},2000); |
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.util.Log; | |
import java.io.IOException; | |
import okhttp3.CipherSuite; | |
import okhttp3.Handshake; | |
import okhttp3.Response; | |
import okhttp3.TlsVersion; | |
/** Prints TLS Version and Cipher Suite for SSL Calls through OkHttp3 */ | |
public class SSLHandshakeInterceptor implements okhttp3.Interceptor { | |
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 python | |
#coding=utf-8 | |
# | |
# Generate a list of dnsmasq rules with ipset for gfwlist | |
# | |
# Copyright (C) 2014 http://www.shuyz.com | |
# Ref https://code.google.com/p/autoproxy-gfwlist/wiki/Rules | |
import urllib2 | |
import re |
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
/* | |
* Copyright 2017 Google Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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 python3 | |
#-*- coding=utf-8 -*- | |
import logging | |
import requests | |
import requests.utils | |
import sys | |
import re | |
import os.path | |
import json |
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
// Complete source code: | |
// https://github.com/android/platform_frameworks_base/blob/master/core/java/android/view/ViewGroup.java#L2143-L2357 | |
public boolean dispatchTouchEvent(MotionEvent ev) { | |
boolean handled = false; | |
// Ignore ... | |
final boolean intercepted; | |
if (actionMasked == MotionEvent.ACTION_DOWN | |
|| mFirstTouchTarget != null) { |
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
#coding=utf8 | |
import itchat | |
CHATROOM_NAME = 'friend' | |
CHATROOM = None | |
HELP_MSG = u'''\ | |
好友状态监测 | |
* 发送名片将会返回好友状态 | |
* 请确有名为%s的未使用的群聊 | |
* 并将该群聊保存到通讯录 |
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
#coding=utf8 | |
import itchat, time | |
SINCERE_WISH = u'祝%s新年快乐!' | |
REAL_SINCERE_WISH = u'祝%s新年快乐!!' | |
def send_wishes(): | |
friendList = itchat.get_friends(update=True)[1:] | |
for friend in friendList: | |
# 如果不是演示目的,把下面的方法改为itchat.send即可 |
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
#coding=utf8 | |
import os | |
import itchat | |
from NetEaseMusicApi import interact_select_song | |
# 第三方包通过该命令安装:pip install itchat, NetEaseMusicApi | |
HELP_MSG = u'''\ | |
欢迎使用微信网易云音乐 | |
帮助: 显示帮助 |