Skip to content

Instantly share code, notes, and snippets.

@markopy
markopy / node@16.rb
Last active June 14, 2023 15:09
Patched homebrew formula to install/build nodejs v16 on macos 10.13.6
class NodeAT16 < Formula
desc "Platform built on V8 to build network applications"
homepage "https://nodejs.org/"
url "https://nodejs.org/dist/v16.20.0/node-v16.20.0.tar.xz"
sha256 "e0990f992234e40a51fe11f92c3816c93a77e1b081145d3dd762cd1026345349"
license "MIT"
livecheck do
url "https://nodejs.org/dist/"
regex(%r{href=["']?v?(16(?:\.\d+)+)/?["' >]}i)
@markopy
markopy / streamlit_command_line.py
Created October 22, 2019 16:23
How to parse command line arguments in streamlit with argparse
# An Example of how to parse command line arguments in streamlit.
# This is free and unencumbered software released into the public domain.
import os
import sys
import random
import argparse
import streamlit as st
parser = argparse.ArgumentParser(description='This app lists animals')