- action
- filter
This file contains hidden or 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
| // 通过1,2,5,10组合出数字 | |
| static QList<quint8> get_number_combined_list(int number) | |
| { | |
| QList<quint8> result; | |
| if(number < 1) | |
| { | |
| return result; | |
| } | |
| // 0 -> null | |
| // 1 -> [1] |
This file contains hidden or 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 <cairo.h> | |
| #include <stdio.h> | |
| // sudo apt-get install libpango1.0-dev | |
| // gcc cairo-demo.c $(pkg-config --cflags --libs pangocairo) | |
| int main() | |
| { | |
| cairo_surface_t *surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 200, 200); | |
| cairo_t *cr = cairo_create(surface); | |
| cairo_surface_destroy(surface); |
This file contains hidden or 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 <iostream> | |
| #include <cstring> | |
| #include <cstdlib> | |
| #include <vector> | |
| using namespace std; | |
| class Str{ | |
| public: | |
| char *value; | |
| Str(char s[]) | |
| { |
This file contains hidden or 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
| python3 -m http.server 8080 |
This file contains hidden or 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
| Adobe Illustrator 2020 | |
| 链接:https://pan.baidu.com/s/1qdqgr4OvBubsXJR70eF6Og 提取码:5s0b | |
| https://uigoodies.com/ | |
| https://www.freepik.com/free-vector/mobile-app-template_1116054.htm |
This file contains hidden or 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
| /* | |
| # Author: Qichunren | |
| # Email: whyruby@gmail.com | |
| */ | |
| #include "files_sync.h" | |
| #include "nt_config.h" | |
| #include "nt_utils.h" | |
| #include <QDir> | |
| #include <QTimer> |
This file contains hidden or 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
| # 统计代码行数,不包括空行 | |
| find /src -name "*.cpp" |xargs cat|grep -v ^$|wc -l | |
| # 查看进程内存使用情况 | |
| cat /proc/409/status | grep VmRSS | awk '{print $2}' | |
| # 获取网卡设备对应的IP地址 | |
| ifconfig eth0 | grep "inet " | awk '{print $2}' | |
| # 获取网卡设备对应的MAC地址 |
This file contains hidden or 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
| 1. vscode from https://code.visualstudio.com/ | |
| 2. ruby 2.6.5 from https://www.ruby-lang.org/zh_cn/, add bin path to /etc/environment | |
| 3. nodejs from https://nodejs.org/zh-cn/, sudo tar xf xx.tar.gz -C /usr/local, and add bin path to /etc/environment | |
| 4. sudo visudo, Add ruby and node path to secret path. | |
| 5. sudo npm install -g yarn | |
| 6. curl, git, gitg | |
| $ git config --global user.name "qichunren" | |
| $ git config --global user.email whyruby@gmail.com | |
| 7. openssh-server | |
| 8. Set up ssh key with right permisson flag. |