小特
3.31 提车
4.08 验车
4.11 上牌
4.14 贴膜
4.19 蹭右前轮毂
4.22 刮车漆
5.25 违停罚款贰佰(首违警告)
7.23 补胎(60) 二补
7.27 违停罚款贰佰(视频教育免罚)
8.09 第一次上高速
9.20 侧方蹭右后轮毂
11.16 违停罚款贰佰
3.31 提车
4.08 验车
4.11 上牌
4.14 贴膜
4.19 蹭右前轮毂
4.22 刮车漆
5.25 违停罚款贰佰(首违警告)
7.23 补胎(60) 二补
7.27 违停罚款贰佰(视频教育免罚)
8.09 第一次上高速
9.20 侧方蹭右后轮毂
11.16 违停罚款贰佰
While there is life there is hope.
Put up or shut up.
one,two,three,go!
good good study,day day up
people mountain,people sea
funny mud pee
right your mother right
blue sky big old grandpa
No care three seven two ten one
Make my heart peng peng peng
What do you call a deer with no eye? (No eye deer)
I only know 25 letters of the alphabet (I don't know Y)
Why is “dark” is spelled with a “k” not a “c”? (Because you can’t c (see) in the dark)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
//1:3:5:7:8:20:28:40
//80080800D5
//213,0,8,8,128,0,0,0
//#define ZXIC
#ifdef ZXIC
#define BAND_WIDTH 8
#else
#define BAND_WIDTH 4
#endif
int str_reverse(char *str)
{
int i, j;
char c;
if (NULL == str || (j = strlen(str)) == 0)
return -1;
for (i = 0, j--; i < j; i++, j--) {
c = str[i];
str[i] = str[j];
str[j] = c;
}
return 0;
}
void get_band_value(int band, int *offset, int *value)
{
int temp;
*offset = band / BAND_WIDTH;
temp = band % BAND_WIDTH;
if (temp == 0) {
(*offset)--;
#ifdef ZXIC
temp = BAND_WIDTH;
#else
temp = 2 * BAND_WIDTH;
#endif
}
#ifdef ZXIC
*value = pow(2, temp - 1);
#else
if (temp == BAND_WIDTH - 1) {
temp = BAND_WIDTH;
}
*value = temp;
#endif
}
int get_frequency_bands(char *band, char *bandBuf)
{
int bandValue, offset, value;
char *ptr = NULL, temp[64] = {0};
#ifdef ZXIC
int i, tempBuf[9] = {0};
#endif
if (NULL == band || NULL == bandBuf || strlen(band) == 0)
return -1;
memcpy(temp, band, strlen(band));
if ((ptr = strtok(temp, ":")) == NULL) {
ptr = temp;
}
do {
if ((bandValue = atoi(ptr)) <= 0)
return -1;
get_band_value(bandValue, &offset, &value);
#ifdef ZXIC
tempBuf[offset] += value;
#else
bandBuf[offset] += value;
if (bandBuf[offset] > '9') {
bandBuf[offset] += ('A' - '9' - 1);
}
#endif
ptr = strtok(NULL, ":");
} while (ptr);
#ifdef ZXIC
offset = 0;
for (i = 0; i < BAND_WIDTH; i++) {
offset += sprintf(&bandBuf[offset], "%d,", tempBuf[i]);
}
bandBuf[--offset] = '\0';
#else
bandBuf[++offset] = '\0';
#endif
#ifdef ZXIC
return 0;
#else
return str_reverse(bandBuf);
#endif
}
int main(int argc, char *argv[])
{
char band[32] = "00000000000000000000";
get_frequency_bands("1:3:5:7:8:20:28:40", band);
printf("band:%s\n", band);
return 0;
}
awk printf 不会插入换行符
获取WiFi连接设备MAC:hostapd_cli list_sta | awk 'NR>1{print $1}'
Read-only file system:mount -o remount,rw /
网络adb:adb connect ip_address:port
root vi无颜色:vi ~/.bashrc alias vi='vim'