Updates:
Add prebuilt binary for 0.15.4
I changed ghc to be installed with ghcup and ghc version to 9.2.3 to match PS 0.15.3 added the RELEASE flag.
#!/usr/bin/env bash | |
######################################################################################################################## | |
# This is a build script for misc. TensorFlow dependencies which do NOT have pre-compiled packages available for | |
# M-series (Apple Silicon) macs. | |
# | |
# Who: team members who use M1 macs and would like to run the project | |
# | |
# Caution: This script will use all available processors (rendering the machine relatively unusable) and will take a | |
# significant amount of time (about 2h 0m 15s on an M1 mac). |
function Code() { | |
const ref = React.useRef() | |
React.useEffect(() => { | |
const handler = e => { | |
const selected = document.getSelection().toString().trim() | |
ref.current.querySelectorAll("span:not(:has(*))").forEach(element => { | |
if (element.textContent === selected) { | |
element.classList.add("selected") | |
} else { | |
element.classList.remove("selected") |