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
function deleteSavedItems() { | |
var query = document.querySelectorAll("#sc-saved-cart input[value=Delete]") | |
if (query.length) { | |
query[0].click(); | |
} | |
if (query.length > 1) { | |
setTimeout(deleteSavedItems,100); | |
} | |
else { | |
console.log('Finished'); |
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
<?php | |
/** | |
* Title: Fulcrum Webhook for syncing data shares to MySQL database | |
* Notes: Requires PHP with PDO & allow_url_fopen enabled | |
* Author: Bryan R. McBride | |
* Source: https://gist.github.com/bmcbride/44afdc10ee943b4e7b92 | |
*/ | |
# Fulcrum app information | |
$formID = 'your-fulcrum-form-id'; |
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
# Produce PDFs from all Markdown files in a directory | |
# Lincoln Mullen | http://lincolnmullen.com | lincoln@lincolnmullen.com | |
# List files to be made by finding all *.md files and appending .pdf | |
PDFS := $(patsubst %.md,%.md.pdf,$(wildcard *.md)) | |
# The all rule makes all the PDF files listed | |
all : $(PDFS) | |
# This generic rule accepts PDF targets with corresponding Markdown |
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
/* | |
* Road data comes from OpenStreetmap (http://download.geofabrik.de/osm/) | |
**/ | |
select st_distance(st_closestpoint(r.the_geog::geometry, wa.location::geometry), wa.location::geometry) as cp | |
, r.name | |
, r.ref | |
, r.ogc_fid | |
, r.type | |
, st_astext(wa.location) | |
, wa.* |