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
#define __DEBUG__ | |
#ifdef __DEBUG__ | |
#define DEBUG(format,...) printf("File: "__FILE__", Line: %05d: "format"/n", __LINE__, ##__VA_ARGS__) | |
#else | |
#define DEBUG(format,...) | |
#endif | |
以上在STM32 System Workbench 编译通过,但是在Xcode 9.3 (Apple LLVM version 9.1.0 (clang-902.0.39.1))编译会提示错误: | |
Invalid suffix on literal; C++11 requires a space between literal and identifier | |
Fix insert" " |
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
ctrl+i 格式化代码 format the code |
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
* ** *** 星星数量代表标题级别,最多10级 | |
- 列表,在同一个子标题下,你还可以将内容划分的更细致。 | |
方法是使用这些符号: ‘-’, ‘+’, ‘*’, ‘1.’, ‘1)’。 | |
把光标移动到 ‘1.’ ‘2.’ 或 ‘3.’ 所在的行上,然后按 shift 加左右方向键可以切换风格。 | |
Tab 折叠该级标题 | |
M-<RET> 创建同级标题星号 | |
M-箭头 改变标题顺序 | |
C-x n s 隐藏其它内容,只显示当前标题内容 | |
C-x n w 展开其它内容 | |
C-c C-n 移动到下一个标题 |
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
String.c_str() |
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
多光标编辑 Multi cursor selection | |
基本: Alt+Click 即,按住 Alt 键,依次单击(或者选择)需要编辑的位置,可以依次添加光标。 Alt 键可以在设置中更改。 | |
一列多光标: Shift+Alt+Down 或者 Shift+Alt+Up 可以在上下位置添加光标。 | |
依次选中相同单词: 选中一个单词,按 Ctrl+D ,可以依次选中下一个相同单词。 | |
选中所有相同单词: 选中一个单词,按 Shift+Ctrl+L (shift+cmd+L),可以一次性选中文本中 所有相同单词 。 | |
矩形选择: 按住 Shift+Alt ,再进行选择,则选择区域是一个矩形。 | |
括号选择: Shift+Alt+Right ,会选中匹配括号中的内容,并可以扩大选中区域。 | |
选择相同实例: |
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
除了exodus magic dragon 还有哪些热门的插件 | |
目前我知道的三个热门插件 exodus 魔龙 看门狗 | |
yoda | |
watch dogs | |
supremacy | |
5ivdo | |
youkuTV | |
Grindhouse Beauty | |
Exodus redux | |
13Clowns Video/b |
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
~/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 |
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
{ | |
"#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" | |
} | |
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
#!/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 |
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
#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" |