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
# https://stackoverflow.com/questions/66783581/converting-a-string-to-hex-in-python-3 | |
def calc_for_lrc(input: str): | |
""" | |
Calculate XOR for [DATA LENGTH] + [DATA] + [ETX] | |
""" | |
# input_example = 'I220001 01 000000000100 123456 ' | |
input = '000' + str(len(input)) + input | |
input = str.encode(input) | |
input = hexlify(input) |
~/Library/Containers/jp.naver.line.mac
可從 Developer Console 中 Network 面板取得 API 路徑
使用 resolution
可統一固定影像大小,有些影像畫質本身比較好,用這個會限縮畫質,需留意
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 com.your.packagename | |
import com.txwstudio.app.roadreport.json.imgurupload.ImgurUploadJson | |
import okhttp3.MultipartBody | |
import okhttp3.OkHttpClient | |
import retrofit2.Call | |
import retrofit2.Retrofit | |
import retrofit2.converter.gson.GsonConverterFactory | |
import retrofit2.http.Header | |
import retrofit2.http.Multipart |
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
root@OpenWrt:~# iw phy | |
Wiphy phy1 | |
max # scan SSIDs: 4 | |
max scan IEs length: 2257 bytes | |
max # sched scan SSIDs: 0 | |
max # match sets: 0 | |
max # scan plans: 1 | |
max scan plan interval: -1 | |
max scan plan iterations: 0 | |
Retry short limit: 7 |
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
/* From Macbed/AppKed */ | |
.card { | |
box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.1) | |
} | |
/* From cht.com */ | |
.card { | |
border-radius: .8rem; | |
/* -webkit-box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.13); */ | |
box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.13); |
NewerOlder