Skip to content

Instantly share code, notes, and snippets.

View walkerjeffd's full-sized avatar

Jeff Walker walkerjeffd

View GitHub Profile
@walkerjeffd
walkerjeffd / is_regular.R
Created August 7, 2013 23:04
R function to test is vector of datetimes is regular and continuous
is.regular <- function(x) {
# returns TRUE if vector x of POSIXct datetimes is continuous and regular
# by checking if there are more than one unique difftime between each row
x.difftime <- difftime(x[2:length(x)], x[1:(length(x)-1)], units='secs')
if (length(levels(factor(x.difftime))) > 1) {
return (FALSE)
} else {
return (TRUE)
}
}
@walkerjeffd
walkerjeffd / README.md
Created January 22, 2016 20:55
transition test
@walkerjeffd
walkerjeffd / README.md
Created January 22, 2016 21:00
transition test 2
license: gpl-3.0
height: 200
@walkerjeffd
walkerjeffd / .block
Last active May 4, 2016 20:58
Multi-Foci Force Layout Along Path
license: gpl-3.0
@walkerjeffd
walkerjeffd / .block
Last active May 6, 2016 19:14
Multi-Foci Force Layout Along A Curved Path
license: gpl-3.0
@walkerjeffd
walkerjeffd / README.md
Created May 22, 2016 19:32
Force Simulation Between Targets
@walkerjeffd
walkerjeffd / .block
Created October 5, 2016 01:43
fresh block
license: mit
@walkerjeffd
walkerjeffd / .block
Created May 12, 2017 11:05
Spinning Ovals
license: mit
@walkerjeffd
walkerjeffd / .block
Last active May 19, 2017 23:25
Spinning Ovals II
license: mit