Skip to content

Instantly share code, notes, and snippets.

// Schemas are defined in a ui, not in text, they are too rich
// States are defined in a ui, not in text, they are too rich

calculateAverages(cells: Cells) {
    // This function has no context (this/self)
    // It is pure, no side-effects
    // It cannot run tasks
    // It can't modify tables, or any data really
    // It can be given table cells as arguments to read, but again can't modify them
@gboeing
gboeing / pypi.md
Last active June 17, 2022 16:11
How to organize and distribution a package on pypi

To distribute a package on pypi

Directory structure

/project/
    /package/
        __init__.py
        module.py
 setup.py
@brianpursley
brianpursley / quickperm.py
Last active December 18, 2022 07:38
This is a Python implementation of the QuickPerm algorithm described by Phillip Paul Fuchs at http://www.quickperm.org that generates all permutations of a list without using recursion
#!/usr/bin/env python
#
# This is a Python implementation of the QuickPerm algorithm described by Phillip Paul Fuchs at http://www.quickperm.org
# that generates all permutations of a list without using recursion.
#
a = ['a', 'b', 'c', 'd']
N = len(a)
@Jaza
Jaza / Private-pypi-howto
Last active July 2, 2023 16:24
Guide for how to create a (minimal) private PyPI repo, just using Apache with directory autoindex, and pip with an extra index URL.
*