ffmpeg -i input.mp4 -acodec copy -ss 00:00:14 -t 00:00:23 output.mp4
-ss:起始时间 -t: 总时间
ffmpeg -i input.mp4 -vf delogo=x=1035:y=40:w=210:h=80 no_log.mp4
import okhttp3.*; | |
import okio.Buffer; | |
import java.io.IOException; | |
import java.nio.charset.Charset; | |
public class CurlLoggerInterceptor implements Interceptor { | |
private StringBuilder curlCommandBuilder; | |
private final Charset UTF8 = Charset.forName("UTF-8"); | |
private String tag = null; |
import android.content.Context; | |
import android.os.Build; | |
import android.support.annotation.IntDef; | |
import android.support.annotation.RequiresApi; | |
import android.util.AttributeSet; | |
import android.view.TextureView; | |
import java.lang.annotation.Documented; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; |
创建用户:https://www.digitalocean.com/community/tutorials/how-to-create-a-new-user-and-grant-permissions-in-mysql mysql 常用操作:https://www.digitalocean.com/community/tutorials/a-basic-mysql-tutorial#how-to-access-a-mysql-database
推荐一个好用的终端 mysql 工具:https://github.com/dbcli/mycli ,mycli 比起原生 mysql 终端增加了补全和高亮功能。
mmm development/tools/idegen/
注意使用 bashdevelopment/tools/idegen/idegen.sh
导入 Android Studio 后的常见问题:
class
文件,解决方法:进入 Project Structure->Modules,移除所有的依赖,只保留两个。具体参考:http://blog.csdn.net/yanbober/article/details/48846331#!/bin/bash | |
usage() { echo "Usage: $0 [-p <package_name>] [-d <databases_name>]" 1>&2; exit 1; } | |
while getopts ":p:d:" o; do | |
case "${o}" in | |
p) | |
p=${OPTARG} | |
;; | |
d) | |
d=${OPTARG} | |
;; |
# Add project specific ProGuard rules here. | |
# By default, the flags in this file are appended to flags specified | |
# in E:\sdk/tools/proguard/proguard-android.txt | |
# You can edit the include path and order by changing the proguardFiles | |
# directive in build.gradle. | |
# | |
# For more details, see | |
# http://developer.android.com/guide/developing/tools/proguard.html | |
# Add any project specific keep options here: |
import java.util.HashMap; | |
/** | |
* Created by coxier on 17-3-10. | |
*/ | |
public class LRUCache<K,V> { | |
private final class Node { | |
Node next; | |
Node pre; |
import android.util.Log; | |
import android.view.GestureDetector; | |
import android.view.MotionEvent; | |
/** | |
* Created by CoXier on 17-2-21. | |
*/ | |
public class SimpleGestureListener extends GestureDetector.SimpleOnGestureListener { | |
private static final String TAG = "SimpleGestureListener"; |