中文乱码的根源在于 windows 基于一些历史原因无法全面支持 utf-8 编码格式,并且也无法通过有效手段令其全面支持。
- 安装
# required: ffmpeg (e.g. from homebrew), terminal-notifier from https://github.com/alloy/terminal-notifier | |
# you can schedule this with launchd to run e.g. weekly | |
# Specify in seconds how long the script should record (default here is 1 hour). | |
seconds=3600 | |
# Date format for the recording file name | |
DATE=`date "+%d-%m-%y_%H-%M"` | |
# start ffmpeg recording |
int aprintf(char *str, ...) { | |
int i, j, count = 0; | |
va_list argv; | |
va_start(argv, str); | |
for(i = 0, j = 0; str[i] != '\0'; i++) { | |
if (str[i] == '%') { | |
count++; | |
Serial.write(reinterpret_cast<const uint8_t*>(str+j), i-j); |
import tornado.ioloop | |
import tornado.web | |
import gen | |
import time | |
import os | |
import tornado | |
file_list = os.listdir("img") | |
counter = 0 |
#include <PubSubClient.h> | |
#include <ESP8266WiFi.h> | |
const char* ssid = "................."; | |
const char* password = "................"; | |
char* topic = "esp8266_arduino_out"; | |
char* server = "iot.eclipse.org"; | |
#include "ets_sys.h" | |
#include "osapi.h" | |
#include "user_interface.h" | |
os_timer_t rtc_test_t; | |
#define RTC_MAGIC 0x55aaaa55 | |
typedef struct { | |
uint64 timeAcc; | |
uint32 magic; |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include "freertos/FreeRTOS.h" | |
#include "freertos/task.h" | |
#include "esp_wifi.h" | |
#include "esp_event.h" | |
#include "lwip/inet.h" | |
#include "lwip/ip4_addr.h" | |
#include "lwip/dns.h" |
#!/usr/bin/env python | |
# encoding: utf-8 | |
import tornado.ioloop | |
import tornado.web | |
import tornado.log | |
import tornado.httpserver | |
from tornado.options import define, options | |
import logging | |
import tornado.gen |
import pathlib | |
import sys | |
import sh | |
def clone_if_not_exists(name, url, **kwargs): | |
if not pathlib.Path(name).exists(): | |
print("Cloning", url, "...") | |
sh.git.clone(url, name, depth=1, **kwargs) |
127.0.0.1 api.ad.xiaomi.com | |
127.0.0.1 sdkconfig.ad.xiaomi.com | |
127.0.0.1 ad.mi.com | |
127.0.0.1 ad.xiaomi.com | |
127.0.0.1 ad1.xiaomi.com | |
127.0.0.1 adv.sec.miui.com | |
127.0.0.1 test.ad.xiaomi.com | |
127.0.0.1 new.api.ad.xiaomi.com |