- Copy
jupyter-lab.desktopto~/.local/share/applications - Copy
jupyter-lab.svgto~/.local/share/icons - Restart gnome-desktop session (Alt+F2 ->
restart)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #' @name logger.setup | |
| #' @export | |
| #' @title Set Up Python-Style Logging | |
| #' @param traceLog file name or full path where \code{logger.trace()} messages will be sent | |
| #' @param debugLog file name or full path where \code{logger.debug()} messages will be sent | |
| #' @param infoLog file name or full path where \code{logger.info()} messages will be sent | |
| #' @param warnLog file name or full path where \code{logger.warn()} messages will be sent | |
| #' @param errorLog file name or full path where \code{logger.error()} messages will be sent | |
| #' @param fatalLog file name or full path where \code{logger.fatal()} messages will be sent | |
| #' @return No return value. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## How to hide API keys from github ## | |
| 1. If you have already pushed commits with sensitive data, follow this guide to remove the sensitive info while | |
| retaining your commits: https://help.github.com/articles/remove-sensitive-data/ | |
| 2. In the terminal, create a config.js file and open it up: | |
| touch config.js | |
| atom config.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require(caret) | |
| #load some data | |
| data(USArrests) | |
| ### Prepare Data (postive observations) | |
| # add a column to be the strata. In this case it is states, it can be sites, or other locations | |
| # the original data has 50 rows, so this adds a state label to 10 consecutive observations | |
| USArrests$state <- c(rep(c("PA","MD","DE","NY","NJ"), each = 5)) | |
| # this replaces the existing rownames (states) with a simple numerical index |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Next time you need to install something with python setup.py -- which should be never but things happen. | |
| python setup.py install --record files.txt | |
| # This will cause all the installed files to be printed to that directory. | |
| # Then when you want to uninstall it simply run; be careful with the 'sudo' | |
| cat files.txt | xargs sudo rm -rf | |