Skip to content

Instantly share code, notes, and snippets.

Scott Dawson scottpdawson

Block or report user

Report or block scottpdawson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View map-routes.R
# Find GPX files using a pattern
files <- dir(pattern = "\\.gpx")
# Consolidate routes in one drata frame
index <- c()
latitude <- c()
longitude <- c()
for (i in 1:length(files)) {
scottpdawson / crowdfire.js
Last active Oct 7, 2017
When Crowdfire updated their service to show a checkmark after you've taken action on a profile instead of just hiding the profile, they ruined the usability of their service. If you paste this in your browser console on each page load, it reverts the functionality back to what it was before. Is there a way to have this load automatically?
View crowdfire.js
$(document).on("click", function() {
View gallery_script.js
View functions.php
add_action("wp_enqueue_scripts", "my_enqueue", 11);
function my_enqueue() {
wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://", false, null);
wp_enqueue_script( 'function', get_stylesheet_directory_uri().'/js/gallery_script.js', 'jquery', true);
// add actions to respond to get_gallery_data
View template_gallery.php
You can’t perform that action at this time.