git clone xxx # 默认拉取master分支
cd xx #进入拉取的文件夹
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all #如果无人提交代码,可以不拉
git pull --all #如果无人提交代码,可以不拉
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
curl https://small-frog-a298.luccid.workers.dev/v1/messages \ | |
--header "x-api-key: sk-xxxx" \ | |
--header "anthropic-version: 2023-06-01" \ | |
--header "content-type: application/json" \ | |
--data \ | |
'{ | |
"model": "claude-3-5-sonnet-20240620", | |
"max_tokens": 1024, | |
"messages": [ | |
{"role": "user", "content": "大家对于新出的 Realme GT6 怎么看"} |
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
/** | |
* 执行指定的异步任务,并在规定时间内尝试重发直到满足条件或者超时。 | |
* | |
* @param timeout 超时时间,单位为毫秒。 | |
* @param retryCount 最多重发次数。 | |
* @param delayTime 重发间隔时间,单位为毫秒。 | |
* @param shouldRetryPredicate 判断是否需要进行重发的函数。该函数返回true时进行重发。 | |
* @param block 异步任务的执行体。该执行体需要支持取消操作。 | |
* @return 异步任务的返回结果,如果超时或者达到最大重发次数仍未获取到期望结果,则返回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
console.log('ylgy script start'); | |
var Body = JSON.parse($response.body); | |
switch ($request.url.match(/map|personal|json/)[0]){ | |
case "map": | |
Body.data.map_md5[1] = '046ef1bab26e5b9bfe2473ded237b572'; | |
break; | |
case "personal": | |
var objk = Body.data; | |
objk["daily_count"] = "1e+308"; | |
objk["nick_name"] = "金字塔的顶端"; |
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 | |
echo "*********************************" | |
echo "Close the progress by name!" | |
echo "usage: ./close_p.sh progressName" | |
echo "*********************************" | |
echo | |
#echo "PID of this script: $$" | |
#echo "PPID of this script: $PPID" |
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
private val HEX_CHARS = "0123456789ABCDEF".toCharArray() | |
fun ByteArray.toHex() : String{ | |
val result = StringBuffer() | |
forEach { | |
val octet = it.toInt() | |
val firstIndex = (octet and 0xF0).ushr(4) | |
val secondIndex = octet and 0x0F | |
result.append(HEX_CHARS[firstIndex]) |
public class SendEmailUtils {
/**
* 邮件发送程序
*
* 接收邮件的address
* @param subject
* 邮件主题
* @param content
/**
* 节气计算类
*/
public final class SolarTerm {
// 提供定位的年份
private static final int baseYear = 1901;
/**
* 计算公历年当月的中气,公历月从0起始!
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
package xmaihh.pay.zxing; | |
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.PointF; | |
import android.view.Gravity; | |
import android.view.View; | |
import android.widget.TextView; |
NewerOlder