https://github.com/willf/snippets
Snippets of code etc
https://github.com/willf/snippets
Last synced: 3 months ago
JSON representation
Snippets of code etc
- Host: GitHub
- URL: https://github.com/willf/snippets
- Owner: willf
- License: mit
- Created: 2025-12-24T21:17:27.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2026-03-23T14:53:53.000Z (3 months ago)
- Last Synced: 2026-03-24T12:33:48.405Z (3 months ago)
- Language: HTML
- Size: 141 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Snippets
A place to share snippets of code and small one-page apps.
## Structure
- **`index.html`** - Auto-generated index page that lists all available snippets
- **`generate.py`** - Python script to generate index.html from HTML files in the directory
- **`kpl_modal.html`** - Example modal dialog snippet
## Usage
### Viewing Snippets
Open `index.html` in your browser to see the list of all available snippets. Click on any snippet to view it.
### Adding New Snippets
1. Add your HTML file to the root directory (e.g., `my_snippet.html`)
2. Run the generator script:
```bash
python3 generate.py
```
3. The index.html will be automatically updated with your new snippet
### Tips for Creating Snippets
- Include a `` tag in your HTML for a proper title in the index
- Add a meta description or a first paragraph for a snippet description
- Include a link back to `index.html` for easy navigation