30-seconds-of-code-ultisnips
30 seconds of code is a curated collection of useful JavaScrupt snippets that you can understand in 30 seconds or less. This repository converts them into a format that UltiSnips (Vim plugin) use.
Make sure you ⭐️ the truly awesome original repository 30-seconds-of-code!
Install snippets
Move the file 30secondsofcode.snippets to your UltiSnips directory. Make sure to extend it by adding extends 30secondsofcode.snippets
to your javascript.snippets
and typescript.snippets
files.
Build
This repository automatically updates daily to grab changes made in 30-seconds-of-code. If you want to parse and create a fresh fully 100% up-to-date snippets file you need to recursively clone this repository by running:
git clone --recursive git@github.com:sQVe/30-seconds-of-code-ultisnips.git
When the cloning of the repository and its submodules finishes, we run the following commands with Node.js:
npm install && npm run build
This writes a new file at dist/UltiSnips/30secondsofcode.snippets
. If you find that the snippets are out-of-date, please do create an PR or issue.
Thanks
A big thank you to the core team and all the contributers at 30-seconds-of-code and UltiSnips for creating an indispensable resource and plugin.
License
Creative Commons License
CC0 1.0 Universal