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
@simonliu009
simonliu009 / KiCad
Last active Jul 13, 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);
@simonliu009
simonliu009 / string to char
Created Jan 10, 2019
[string to char *] convert string to char * #c #string #char
View string to char
String.c_str()
@simonliu009
simonliu009 / iTerm2 key bindings
Last active Dec 29, 2018
[iTerm2快捷键]iTerm2 快捷键及技巧 #iTerm2
View iTerm2 key bindings
^ 代表 shift
“cmd+d” 左右分屏
“^+cmd+d”实现上下分屏
“cmd+f” 搜索及文本复制,可以调出搜索框进行文本搜索,然后按下“tab”键会自动高亮当前文本后面的内容。最后按enter键将高亮文本复制到剪切板上。
“^+cmd+h” 调出复制过的文本历史
“cmd+alt+b” 按键回放
“^+cmd+o” 快速打开profile或者切换到指定tab
@simonliu009
simonliu009 / user_main.c
Last active Jan 7, 2019 — forked from 0x6e/user_main.c
ESP8266 Espressif RTC Example #ESP8266 #RTC
View user_main.c
#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;
@simonliu009
simonliu009 / emacs org-mode
Last active Jan 7, 2019
emacs: org-mode #emacs
View emacs org-mode
* ** *** 星星数量代表标题级别,最多10级
- 列表,在同一个子标题下,你还可以将内容划分的更细致。
方法是使用这些符号: ‘-’, ‘+’, ‘*’, ‘1.’, ‘1)’。
把光标移动到 ‘1.’ ‘2.’ 或 ‘3.’ 所在的行上,然后按 shift 加左右方向键可以切换风格。
Tab 折叠该级标题
M-<RET> 创建同级标题星号
M-箭头 改变标题顺序
C-x n s 隐藏其它内容,只显示当前标题内容
C-x n w 展开其它内容
C-c C-n 移动到下一个标题
You can’t perform that action at this time.