Skip to content

Instantly share code, notes, and snippets.

View simonprovost's full-sized avatar
🔬
Geo-engineering @ NYU

Provost Simon simonprovost

🔬
Geo-engineering @ NYU
View GitHub Profile
@Hero-Development
Hero-Development / react-downgrade.md
Last active February 8, 2025 21:55
Downgrade React 18 to version 17

Downgrade React 18 to version 17

NOTE: this also downgrads webpack to version 4

Step 1: downgrade React modules

1a - Using NPM:

npm remove react react-dom react-scripts
npm add react@^17.0.2 react-dom@^17.0.2 react-scripts@^4.0.3
@FRodrigues21
FRodrigues21 / cfreportlatex.py
Last active January 4, 2023 19:16
Parse and convert scikit-learn classification_report to latex (Python 3 / Booktabs)
"""
Code to parse sklearn classification_report
Original: https://gist.github.com/julienr/6b9b9a03bd8224db7b4f
Modified to work with Python 3 and classification report averages
"""
import sys
import collections