#Wechat Hack API
###1.Reply
-
####Url:
import oci | |
import os | |
import sys | |
import concurrent.futures | |
def download_file(object_storage_client, namespace, bucket_name, object_name, local_directory): | |
file_name = object_name.split('/')[-1] | |
if file_name: # Skip directories | |
local_file_path = os.path.join(local_directory, file_name) | |
get_obj = object_storage_client.get_object(namespace, bucket_name, object_name) |
import oci | |
import os | |
import sys | |
def download_directory(object_storage_client, namespace, bucket_name, oci_prefix, local_directory): | |
# Create local directory if it does not exist | |
if not os.path.exists(local_directory): | |
os.makedirs(local_directory) | |
# List all objects in the OCI directory |
#Please note that the code below is specifically optimized for MPT-7B-Chat model on the Databricks Documentation dataset, modifications may be required for other models or datasets. | |
import re | |
from html import unescape | |
# Keep all HTML tags | |
# No code is needed as we are keeping all HTML tags | |
# Replace multiple newlines or multiple empty lines with one newline |
private static ResponseHolder httpUploadFile(String targetUrl, | |
String filePath, ArrayList<NameValuePair> headerArrayList, | |
ArrayList<NameValuePair> paramsArrayList) { | |
// about url | |
for (int i = 0; i < paramsArrayList.size(); i++) { | |
NameValuePair nowPair = paramsArrayList.get(i); | |
if (i == 0) { | |
targetUrl += ("?" + nowPair.getName() + "=" + nowPair | |
.getValue()); |
public class WavingView extends View | |
implements | |
ValueAnimator.AnimatorUpdateListener, | |
Animator.AnimatorListener { | |
private int maxWaveRadius, minWaveRadius; | |
private int centerX, centerY; | |
private final long WAVE_SPREAD_DURATION = 2000; | |
private final long WAVE_DELAY_DURATION = 1000; | |
private final int WAVE_AMOUNT = 4; |
package com.wandoujia.roshan.notification; | |
import java.util.List; | |
import android.annotation.TargetApi; | |
import android.app.ActivityManager; | |
import android.app.PendingIntent; | |
import android.content.Context; | |
import android.media.AudioManager; | |
import android.media.RemoteController; |
/*** | |
* 1.这是半年前的代码,因此有些Url有冗余,实现部分也有很冗余,主要参考的是url和实现部分的参数; | |
* 2.注意base url和path的概念 | |
* 3. | |
***/ | |
//URL | |
public static final String URL_LOGIN = "https://mp.weixin.qq.com/cgi-bin/login?lang=zh_CN"; | |
public static final String URL_GET_MESSAGE_LIST = "https://mp.weixin.qq.com/cgi-bin/message"; | |
public static final String URL_GET_NEW_MESSAGE_COUNT = "https://mp.weixin.qq.com/cgi-bin/getnewmsgnum"; |
#Wechat Hack API
###1.Reply
####Url:
#Wechat Hack API
###1.Reply
####Url: