Snippets Collection
All my code snippets compiled.
Backend
NO | TITLE | DESCRIPTION | NO | TITLE | DESCRIPTION |
---|---|---|---|---|---|
1 | Simplest Server | express | 2 | Express multiple process server | Express, multiple process |
3 | JWT Authentication server | express, jwt, authentication, sqlite | 4 | Sqlite3 | sqlite3 |
5 | Sqlite3 with promise | sqlite3, promise | 6 | Download file | download |
7 | Node oracle | 8 | Node.js auth | Login, router, sidebar | |
9 | Rename a file | 10 | Express session example | Enable session in express | |
11 | Express session debug quiz | 12 | connect-sqlite3 example | ||
13 | OAuth2 server demo based on oauth2orize | 14 | Express-session example | ||
15 | Fix passport successReturnToOrRedirect | 16 | Express-session memorystore | ||
17 | Express static server | 18 | Oracle自增主键 | ||
19 | OpenAI API Example | 20 | Node.js POST files | Node.js(not browser) POST request with files |
Frontend
NO | TITLE | DESCRIPTION | NO | TITLE | DESCRIPTION |
---|---|---|---|---|---|
1 | Vuetify2页面和组件集合 | Code Sandbox | 2 | Axios常用代码 | |
3 | Vue组件通信 | 4 | Vuetify 全局toast | ||
5 | PostMessage | PostMessage can bypass CORS for iframe | 6 | HTML Calendar | Normal html date input only pops up calendar when the rightmost icon is clicked, this one makes the calendar pop up when anywhere of the input is clicked |
7 | Tailwind Demo | Tailwind Demo | 8 | Login pages | Login pages |
9 | IndexedDB Demo | IndexedDB examples | 10 | Markdown & Highlight | Markdown renderer with code highlight support |
Machine Learning
LeetCode
NO | TITLE | Solution | NO | TITLE | Solution |
---|---|---|---|---|---|
804 | Unique Morse Code Words (Easy) | Solution |
Snippets Collection
https://blog-cdt1.vercel.app/2022/10/20/Snippets-Collection/