- HTTP 形式:
git clone https://github.com/owner/git.git
- SSH 形式:
git clone [email protected]:owner/git.git
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
#!/bin/bash | |
# MIT License | |
# Copyright (c) 2022-present MoyuScript | |
# See: https://mit-license.org/ | |
echo "Input path: $1" | |
echo "With subset: $2" | |
echo "Custom text file: $3" |
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
<template> | |
<!-- <div class="scroll"> | |
<div class="item">1</div> | |
<div class="item">2</div> | |
<div class="item">3</div> | |
<div class="item">4</div> | |
<div class="item">5</div> | |
<div class="item">6</div> | |
<div class="item">7</div> | |
<div class="item">8</div> |
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
Log.e("Live",getTaskId()+""); | |
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) { | |
ActivityManager activityManager = getSystemService(ActivityManager.class); | |
//获取任务栈列表 | |
List<ActivityManager.AppTask> tasks = activityManager.getAppTasks(); | |
for (ActivityManager.AppTask task : tasks) { | |
ActivityManager.RecentTaskInfo info = task.getTaskInfo(); | |
int activityCount = info.numActivities; //栈内Activity数量 | |
String topActivity = info.topActivity.getClassName(); //栈顶Activity | |
String baseActivity = info.baseActivity.getClassName(); //栈底Activity |
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
/* | |
* AdaptScreenUtils.kt, 2023-01-05 | |
* | |
* Copyright © 2015-2023 Liangyihui. All rights reserved. | |
* | |
*/ | |
package com.dop.h_doctor.util | |
import android.content.res.Resources |
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
find . -iname '*.flac' -exec bash -c 'D=$(dirname "{}"); B=$(basename "{}"); T="mp3/$D"; mkdir -p "$T"; ffmpeg -i "{}" -ab 192k -map_metadata 0 -id3v2_version 3 -acodec libmp3lame "$T/${B%.*}.mp3"' \; |
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
Paint paint=new Paint(); | |
ColorMatrix cm = new ColorMatrix(); | |
cm.setSaturation(0); | |
paint.setColorFilter(new ColorMatrixColorFilter(cm)); | |
getWindow().getDecorView().setLayerType(View.LAYER_TYPE_HARDWARE,paint); |
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
#!/bin/bash | |
# Based on http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html | |
# Requires ffmpeg | |
filename="${1%.*}" | |
palette="/tmp/palette.png" | |
filters="scale=320:-1:flags=lanczos" | |
ffmpeg -v warning -i "$1" -vf "$filters,palettegen" -y $palette | |
ffmpeg -v warning -i "$1" -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y "$filename.gif" |
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
# <类型>: (类型的值见下面描述) <主题> (最多50个字) | |
# 解释为什么要做这些改动 | |
# |<---- 请限制每行最多72个字 ---->| | |
# 提供相关文章和其它资源的链接和关键字 | |
# 例如: Github issue #23 | |
# --- 提交 结束 --- | |
# 类型值包含 |