Skip to content

Instantly share code, notes, and snippets.

View bollwyvl's full-sized avatar

Nicholas Bollweg bollwyvl

View GitHub Profile
@bollwyvl
bollwyvl / ffs.py
Last active April 15, 2026 14:37
fat feedstock saver
"""Update a ``recipe.yaml``'s sources and licenses from a checkout with submodules.
Given a ``recipe.yaml`` to have the following structure:
context:
version: <the version>
# if found, sources with the same `target_directory` will preserve patches
# source:
# - patches: []
about:
This file has been truncated, but you can view the full file.
diff --git a/.prettierrc b/.prettierrc
index b0a179d48c..cbcb3ee94b 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -1,5 +1,6 @@
{
"singleQuote": true,
"trailingComma": "none",
- "arrowParens": "avoid"
@bollwyvl
bollwyvl / widget-html-json.ipynb
Last active January 23, 2026 15:05
Using Jupyter Widgets with Arbitrary JavaScript and HTML
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bollwyvl
bollwyvl / nbconvert-in-jupyterlite.ipynb
Last active January 6, 2026 16:25
nbconvert in jupyterlite
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
"""(re-)generate the litestar multi-output recipe based on `pyproject.toml`
Invoke 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.
@bollwyvl
bollwyvl / check_locust_recipe.py
Created November 20, 2025 16:45
check locust recipe
import os
import tarfile
import subprocess
import re
from io import StringIO
from difflib import unified_diff
from urllib.request import urlretrieve
from pathlib import Path
from ruamel.yaml import YAML as YAML_
from typing import Any
@bollwyvl
bollwyvl / build_morph_kgc_recipe.py
Created November 15, 2025 18:18
build a conda-forge recipe.yaml for morph-kgc
import os
import tarfile
import subprocess
import re
from io import StringIO
from difflib import unified_diff
from urllib.request import urlretrieve
from pathlib import Path
from ruamel.yaml import YAML as YAML_
from typing import Any
@bollwyvl
bollwyvl / LICENSE
Last active October 22, 2025 12:22
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.
/*
- read the code so you know it's not crazy
- paste this into your logged-in browser session on github (maybe 'allow pasting')
- run it
- update with new COMMITS
*/
COMMITS = {
vale: {v0: "4f829d3ccb335d75abc825543dbf068bda938916", v1: "8a4fd98e738fcc3376b9ea316319c220a515e4b8"},
dagster: {v0: "76c76e86bc306ff05ca1fa650a188450bd4da605", v1: "2d18ce2ed3863d7782bd7f561f6175658d505f6e"},
}
@bollwyvl
bollwyvl / README.md
Last active March 1, 2025 13:48
d3 fishbone

Click to drag nodes.

This is a [Fishbone or Ishikawa][ish] diagram, which shows contributions of different levels of a hierarchy to a main concept.

It is implemented in [d3.js][d3], nominally using the [Towards Reusable Charts][trc] pattern. Positioning is done by [d3.layout.force][force], though a fair amount of pre-processing along the lines of [d3.layout.tree][tree] is done.