Skip to content

Instantly share code, notes, and snippets.

@WarFox
WarFox / install-and-setup-openblas-and-lapack.sh
Created August 15, 2022 13:06
Installing lapack and openblas for building scipy on MacOS
#!/usr/env bash
brew install openblas
brew install lapack
# Set the following environment variables so that the build tools can find the libraries.
# openblas
export LDFLAGS="-L/usr/local/opt/openblas/lib $LDFLAGS"
export CPPFLAGS="-I/usr/local/opt/openblas/include $CPPFLAGS"
export PKG_CONFIG_PATH="/usr/local/opt/openblas/lib/pkgconfig $PKG_CONFIG_PATH"
@tvst
tvst / SessionState.py
Last active September 30, 2024 07:47
DO NOT USE!!! Try st.session_state instead.
"""Hack to add per-session state to Streamlit.
Usage
-----
>>> import SessionState
>>>
>>> session_state = SessionState.get(user_name='', favorite_color='black')
>>> session_state.user_name
''
@davidfowl
davidfowl / dotnetlayout.md
Last active April 28, 2025 17:54
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/