This file contains 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
# This app.R demonstrates how R Shiny rerenders a unique output id | |
# the previously renred plot is initially visible, afterwards changed | |
# that is how shiny is designed to work | |
library(shiny) | |
library(ggplot2) | |
app <- shinyApp( | |
ui = fluidPage( | |
selectInput( |
This file contains 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
# an example of using package 'chatgpt' to help you generate pipaeble code | |
# I used here code that I have seen on twitter | |
# however I cannot locate it anymore, no pun intended, will update the sources once I found it | |
# my package loader (installs packages if they are not installed) | |
if (!require(attachee)) { | |
if (!require(devtools)) { | |
install.packages(devtools) | |
} else { | |
install_github("patrikios/attachee") |
This file contains 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
Set-Alias delp Remove-EnvironmentPath | |
function Remove-EnvironmentPath { | |
$toRemove = ($args -join " ").TrimEnd("\") | |
$userPath = [Environment]::GetEnvironmentVariable("PATH", "User") | |
$changedUserPath = $userPath.Split(";") | | |
ForEach-Object { $_.TrimEnd("\").Trim() } | | |
Where-Object { $_ -ne $toRemove } | |
$changedUserPath = $changedUserPath -Join ";" |
OlderNewer