Skip to content

Instantly share code, notes, and snippets.

SimonLliu simonliu009

Block or report user

Report or block simonliu009

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:a66fc2cbdde10d3999872e5efc0da306
//Change Tools/Partition/Scheme to Minimal SPIFFS (Large APPS with OTA)
//IR sensor set at GPIO13
//Must Insert SD card
#include "esp_camera.h"
#include <WiFi.h>
#include "esp_timer.h"
#include "img_converters.h"
#include "Arduino.h"
#include "fb_gfx.h"
@simonliu009
simonliu009 / linux.kill
Last active Aug 26, 2019
[linux 杀死进程] #linux
View linux.kill
ps -ef|grep 程序名 | awk '{print $2}' | xargs kill -9
ps -ef|grep server.py | awk '{print $2}' | xargs kill -9
@simonliu009
simonliu009 / ESP32_wifi_dns.c
Created Jul 28, 2019 — forked from MakerAsia/ESP32_wifi_dns.c
ESP32 (ESP-IDF) WiFi connect and resolve DNS
View ESP32_wifi_dns.c
#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"
@simonliu009
simonliu009 / main.py
Created Jul 20, 2019 — forked from cloverstd/main.py
Handle file upload by Tornado and Nginx Upload Module
View main.py
#!/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
@simonliu009
simonliu009 / KiCad
Last active Jul 22, 2019
[KiCad shortcuts]KiCad 快捷方式 #KiCad
View KiCad
原理图Schmatic:
Shift+A 放置元件 place components
M 移动元件
G 拖动连线
E 编辑属性
C 复制
R 旋转
X X轴镜像
Y Y轴镜像
Shift+L 标签
@simonliu009
simonliu009 / file header snippets
Last active Mar 2, 2019
[file header snippets]file header snippet for .h file #vscode
View file header snippets
{
"#ifndef … #define … #endif":{
"prefix": "def",
"body": "#ifndef ${1:${TM_FILENAME_BASE/(.*)/_${1:/upcase}_H/i}} \n#define $1 \n#ifdef __cplusplus\nextern \"C\" {\n#endif\n${2:}\n\n\n#ifdef __cplusplus\n}\n#endif\n#endif\t// $1"
}
@simonliu009
simonliu009 / cleanMac
Last active Mar 2, 2019
[cleanMac]temporary and cached files that can be deleted from macOS #macOS
View cleanMac
~/library/Logs
~/library/Android/sdk
~/library/caches/Images
~/library/caches/Videos
~/library/caches/Firefox
~/library/caches/Avatar Adobe AndroidStudio2.2
~/Library/Application Support/Telegram\ Desktop
~/Library/Application Support/Kodi
@simonliu009
simonliu009 / kodi.tv
Created Feb 24, 2019
[kodi]热门插件 #kodi
View kodi.tv
除了exodus magic dragon 还有哪些热门的插件
目前我知道的三个热门插件 exodus 魔龙 看门狗
yoda
watch dogs
supremacy
5ivdo
youkuTV
Grindhouse Beauty
Exodus redux
13Clowns Video/b
@simonliu009
simonliu009 / atoi
Created Jan 10, 2019
[char * to int]atoi() #c
View atoi
atoi(3) - Linux man page
Name
atoi, atol, atoll, atoq - convert a string to an integer
Synopsis
#include <stdlib.h>
int atoi(const char *nptr);
long atol(const char *nptr);
long long atoll(const char *nptr);
@simonliu009
simonliu009 / strtol
Created Jan 10, 2019
[string to int]strtol #c
View strtol
strtol(3) - Linux man page
Name
strtol, strtoll, strtoq - convert a string to a long integer
Synopsis
#include <stdlib.h>
long int strtol(const char *nptr, char **endptr, int base);
long long int strtoll(const char *nptr, char **endptr, int base);
You can’t perform that action at this time.