Skip to content

Instantly share code, notes, and snippets.

View bollwyvl's full-sized avatar

Nicholas Bollweg bollwyvl

View GitHub Profile
"""(re-)generate the litestar multi-output recipe based on `pyproject.toml`
Download this locally from the root of the feedstock, assuming `tomli`, `jinja2`, and `packaging`:
python test_recipe.py --update
git commit -m "updated recipe with test_recipe.py"
conda smithy rerender
If not updating, parameter will fail if new `[extra]`s are added, or
dependencies change.
[project]
name = "foo"
channels = ["conda-forge"]
platforms = ["linux-64"]
[dependencies]
sqlite = "*"
[tasks.preflight]
inputs = ["pixi.toml"]
@bollwyvl
bollwyvl / LICENSE
Last active April 1, 2024 09:25
Towards a JSON Schema for the Language Server Protocol
Copyright 2019 dead pixels collective
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
@bollwyvl
bollwyvl / OpenAI API in JupyterLite JS Knerel.ipynb
Last active January 14, 2024 09:27
OpenAI API in JupyterLite
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bollwyvl
bollwyvl / README.md
Last active August 7, 2023 08:33
RevealJS SVG fragment presenter

SVG fragment builds for reveal.js

Basic use case

  • make an SVG (maybe in inkscape)
    • save it someplace reveal.js can find it (maybe next to your presentation)
    • figure out how to identify them (maybe use named layers)
  • in reveal.js/index.html
    • add reveal-svg-fragment.js as a dependency
    • in a <section> of reveal.js markup
  • add data-svg-fragment="" to something, e.g.
@bollwyvl
bollwyvl / nbconvert-in-jupyterlite.ipynb
Last active July 28, 2023 17:21
nbconvert in jupyterlite
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bollwyvl
bollwyvl / README.md
Last active July 20, 2023 18:38
A fishbone editor
  • Make a bulleted Markdown list in the top left to update the list
  • Press edit to hide the editor
  • Press save to use [SVG Crowbar][crowbar] to save a copy
  • Click to drag nodes

This is an integration of [this implementation][orig] of a [Fishbone or Ishikawa][ish] diagram, which shows contributions of different levels of a hierarchy to a main concept, with a Markdown editor for making quick diagrams.

The diagram is implemented in [d3.js][d3], while rich-text editing is provided by [CodeMirror][cm], and [marked][mkd] handles Markdown processing.

@bollwyvl
bollwyvl / README.md
Last active February 24, 2023 21:47
RevealJS TimelineJS

Basic use case

  • make a timeline (video)
    • save it someplace reveal.js can find it (maybe next to your presentation, or on Google Docs)
  • in reveal.js/index.html
  • add reveal-timeline.js as a dependency
@bollwyvl
bollwyvl / Embedded Mermaid diagrams in the IPython Notebook.ipynb
Last active January 17, 2023 10:12
Embedded Mermaid diagrams in the IPython Notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bollwyvl
bollwyvl / NotebookApp.ipynb
Created April 5, 2019 02:05
NotebookApp.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.