Skip to content

Instantly share code, notes, and snippets.

Avatar

Kevin klprint

View GitHub Profile
@klprint
klprint / ChangeChmod.txt
Created Aug 1, 2016
Change chmod for folder & all subfolders
View ChangeChmod.txt
# Sets chmod 755 for folder and all subfolders
find /opt/lampp/htdocs -type d -exec chmod 755 {} \;
# Sets chmod 655 for all files in this folder & subfolder
find /opt/lampp/htdocs -type f -exec chmod 644 {} \;
@klprint
klprint / ChangeChmod.txt
Created Aug 1, 2016
Change chmod for folder & all subfolders
View ChangeChmod.txt
# Sets chmod 755 for folder and all subfolders
find /opt/lampp/htdocs -type d -exec chmod 755 {} \;
# Sets chmod 655 for all files in this folder & subfolder
find /opt/lampp/htdocs -type f -exec chmod 644 {} \;
View gist:5b10ff18c91f26d890631a8780faffe1
git clone <repo-address>
git tag -l
git checkout <tag-name>
git branch -D master
git checkout -b master
View R_Functions.R
# Analyse data using a sliding window
slideFunct <- function(data, window, step){
total <- length(data)
spots <- seq(from=1, to=(total-window), by=step)
result <- vector(length = length(spots))
for(i in 1:length(spots)){
result[i] <- median(data[spots[i]:(spots[i]+window)])
}
return(result)
}