Skip to content

Instantly share code, notes, and snippets.

View jasonferrier's full-sized avatar
👨‍💻

Jason Ferrier jasonferrier

👨‍💻
View GitHub Profile
@jasonferrier
jasonferrier / console.js
Created May 3, 2023 14:34
Show message in Browser Dev Tools Console when opened
/*
* Taken from Material UI documentation:
* https://github.com/mui/material-ui-docs/blob/af5e109990a26318c96dbff6f25759ba91f0e147/docs/pages/_app.js#L112
*
* The `%c` directive in the text output of the `log()` instance method applies CSS to the text AFTER the directive
* See documentation section "Styling console output" at the following link
* https://developer.mozilla.org/en-US/docs/Web/API/console#outputting_text_to_the_console
*/
if (typeof window !== 'undefined' && process.env.NODE_ENV === 'production') {
scenario tenure usage solar_adopter income avg_bills_level
Model_Run_A Renter Low Non-adopter Lowest 66.24501596149938
Model_Run_A Renter Low Non-adopter Moderate 71.56755904077203
Model_Run_A Renter Low Non-adopter Middle 74.03720690286845
Model_Run_A Renter Low Non-adopter High 76.26706497987249
Model_Run_A Renter Low PV Adopter Lowest
Model_Run_A Renter Low PV Adopter Moderate
Model_Run_A Renter Low PV Adopter Middle
Model_Run_A Renter Low PV Adopter High
Model_Run_A Renter Low All Lowest 66.24501596149938