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
install: | |
make up | |
if [ ! -f sites/default/settings.local.php ]; then cp sites/default/example.settings.local.php sites/default/settings.local.php; fi | |
make preparedb | |
make refreshdb | |
docker-compose exec cli /bin/bash -c "cd tests; composer install" | |
docker-compose ps | |
down: | |
docker-compose down |
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
complete <- function(directory, id = 1:332) { | |
files_list <- list.files(directory, full.names=TRUE) | |
#create list of files | |
df1 <- data.frame() | |
#create empty data frame | |
df2 <- complete.cases(read.csv(files_list[1])) | |
#populate df1 with complete cases from file id=1 |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
<?php | |
$url = get_bloginfo('url'); | |
if ( isset( $wp_query -> query_vars['is_past'] ) ) | |
{ | |
$path = sprintf('<a href=%s/events/><h4>View Upcoming Events</h4></a>', $url); | |
echo $path; | |
} | |
else | |
{ | |
echo '<a href=sprintf("%s/events/past/", $url)><h4>View Past Events</h4></a>'; |
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
<?php | |
if ( isset( $wp_query -> query_vars['is_past'] ) ) { | |
$url = bloginfo('url'); | |
echo <a href=sprintf("%s/events/", $url)><h4>View Upcoming Events</h4></a>; | |
else { | |
echo <a href=sprintf("%s/events/past/", $url)><h4>View Past Events</h4></a>; | |
} | |
?> |