{"id":19136985,"url":"https://github.com/singcl/playground","last_synced_at":"2026-06-24T00:31:33.710Z","repository":{"id":46486056,"uuid":"136713513","full_name":"singcl/playground","owner":"singcl","description":"All the base example including javascript, typescript, go, dart, c, c++, python and so on.","archived":false,"fork":false,"pushed_at":"2023-05-09T18:07:48.000Z","size":8529,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-22T18:23:09.555Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/singcl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-09T10:28:57.000Z","updated_at":"2021-10-09T10:02:20.000Z","dependencies_parsed_at":"2023-01-24T14:30:45.936Z","dependency_job_id":null,"html_url":"https://github.com/singcl/playground","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/singcl/playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singcl%2Fplayground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singcl%2Fplayground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singcl%2Fplayground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singcl%2Fplayground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/singcl","download_url":"https://codeload.github.com/singcl/playground/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singcl%2Fplayground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34712578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T06:36:03.483Z","updated_at":"2026-06-24T00:31:33.693Z","avatar_url":"https://github.com/singcl.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Playground Singcl\n\nvscode 配置 C/C++智能提示的三种方法：https://github.com/Microsoft/vscode-cpptools/blob/master/Documentation/Getting%20started%20with%20IntelliSense%20configuration.md\n\n### windows C/C++ CMake make\n\n#### 1. 当前 shell 切换到 cmd\n\n比如从 git-bash, sh, cmder 等切换到 cmd\n\n当然你也可以直接打开 cmd， cd 到当前目录\n![cmd](./img/cmd.png)\n\n#### 2. 确定生成什么类型的 Makefile\n\nMinGW 和 CMake 完全是无关的两个工具，所以，只需要安装后，把工具的路径加入到系统的 Path，就可以直接在 cmd.exe 中来使用。\n\n因为 windows 版的 CMake 支持很多的编译器，而且其默认的一般是最新的 Visual Studio 20xx 工具,\n相当于：`cmake -G \"Visual Studio 15 2017\" ../`. 这种不会生成 Makefile 文件，所有构建时使用`cmake --build ./`而不是`make`命令。\n\n所以，需要指定 Makefile 的格式.以 MinGW 为例`cmake -G \"MinGW Makefiles\" ./`\n\n![cmake](./img/cmake-G-MinGW-Makefiles.png)\n\n输入`cmake -G`查看参数更多详情；输入`cmake --build`查看 build 更多详情\n\n### 3.make\n\nMinGW 中 make 为 mingw32-make\n![mingw32-make](./img/mingw32-make.png)\n\n### #define VS const\n\n![define-const](./img/const_define.png)\n\n## Babel 直接运行 ES6 代码\n\nhttps://babeljs.io/docs/en/6.26.3/babelrc\n\n```sh\n# babel-node\nnpx babel-node rx/example1.js\n```\n\n## NPM\n\n```sh\n但不是说~就行^就不行\n\"express\":\"^4.16.3\"意思是安装4.x.x\n\"express\":\"~4.16.3\"意思是安装4.16.x\n一般4.x.x是兼容的，当然这规范的执行取决于这个package，而4.16.x相当于fix版本，你很难说明不符合前面那个规范的package一定会符合后面这个规范。\n如果不是很确定，你可以使用npm install xx -E固定版本\n```\n\n~~~u","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsingcl%2Fplayground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsingcl%2Fplayground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsingcl%2Fplayground/lists"}