每次回答問題或完成任務後,使用以下指令進行語音通知:
say -v "Meijia" -r 180 "簡短描述回答內容或完成的工作"- 通知腳本:
/Users/user/Workspace/prompt-mvp/notification.sh - 使用語音:Meijia(台灣國語)
- 語速:180 字/分鐘
| /** | |
| * 計算 Multiplier(x): | |
| * y = e^( (ln2/8) * x ) , if 0 ≤ x < 8 | |
| * y = (1/8) * e^( (ln2/2) * x ) , if 8 ≤ x < 24 | |
| * y = (1/8) * e^( (ln2/2) * x ) , if x ≥ 24 | |
| * | |
| * @param {number} x — 輸入值(假設 x ≥ 0) | |
| * @returns {number} y — 分段函數的值 | |
| */ | |
| function multiplier(x) { |
| python3 -m venv venv && source venv/bin/activate && pip install -r requirements.txt | |
| source venv/bin/activate && python start_api.py --host 127.0.0.1 --port 8000 --log-level info --env development |
Some notes, tools, and techniques for reverse engineering Golang binaries.
Content :
| Vagrant.configure("2") do |config| | |
| config.vm.define "centos7_with_docker" do |v| | |
| v.vm.box = "genebean/centos-7-docker-ce" | |
| v.vm.synced_folder ".", "/vagrant" | |
| v.ssh.username = "root" | |
| v.ssh.password = "root" | |
| config.vm.provider "virtualbox" do |vb| | |
| vb.memory = "51200" | |
| vb.cpus = 24 |
| public class FirebaseApi | |
| { | |
| public async Task<long> GetTime() | |
| { | |
| var result = await Firebase.Functions.FirebaseFunctions.DefaultInstance.GetHttpsCallable("GetServerTimestamp").CallAsync(); | |
| if (result.Data != null) | |
| { | |
| string time = result.Data.ToString(); | |
| return Convert.ToInt64(time.Substring(0, time.Length - 3)); // for changing milliseconds to seconds | |
| } |
| // 將浮點數轉換為整數 | |
| function asInteger(floatNumber, precision) { | |
| return Math.round(floatNumber * Math.pow(10, precision)); | |
| } | |
| // 進行整數加法 | |
| function addFloatsAsIntegers(float1, float2, precision) { | |
| const int1 = asInteger(float1, precision); | |
| const int2 = asInteger(float2, precision); | |
| return (int1 + int2) / Math.pow(10, precision); |
| public async static Task<(int errorCode, long timestamp)> GetTime(int maxRetryCount = 3) | |
| { | |
| const int SuccessCode = 0; | |
| const int RetryLimitReachedCode = 1; | |
| const int NoDataCode = 2; | |
| const int UnknownErrorCode = 99; | |
| int retryCount = 0; | |
| while (retryCount < maxRetryCount) | |
| { |
| public async static Task<long> GetTime(int maxRetryCount = 3) | |
| { | |
| int retryCount = 0; | |
| while (retryCount < maxRetryCount) | |
| { | |
| try | |
| { | |
| var result = await Firebase.Functions.FirebaseFunctions.DefaultInstance.GetHttpsCallable("GetServerTimestamp").CallAsync(); | |
| if (result.Data != null) |