Re-enable paste in form input when disabled by website.
var allowPaste = function(e) {
e.stopImmediatePropagation();
console.log("Free the paste!")
return true;
};
# Source and destination paths | |
$sourcePath = "C:\source" | |
$destinationPath = "C:\destination" | |
# Get only the top-level folders | |
$folders = Get-ChildItem -Path $sourcePath -Directory | |
# Copy each folder | |
foreach ($folder in $folders) { | |
Copy-Item -Path $folder.FullName -Destination $destinationPath -Container |
"""Transfer Ownership of App and Associated Web Maps and Feature Layers. | |
Given an app item ID, transfer ownership of the app and all associated items. | |
""" | |
from arcgis.gis import * | |
# Parameters |
By default feature layers hosted on ArcGIS Online do not allow you to insert links into fields because it could be "harmful". This code snippet allows you to edit the service definition of a feature layer to allow links to be added to fields.
<form action="/set-timer" method="get" id="timer-form"> | |
<label for="time-select">Enter a date and time for the glitter bomb to detonate:</label> | |
<input id="time-select" type="datetime-local" name="time" /> | |
<button type="submit" form="timer-form">Start Timer</button> | |
</form> | |
<script> | |
document.getElementById("time-select").value = Date().toString(); | |
</script> |
[ | |
{ | |
"rank": "1", | |
"chamber": "Rep.", | |
"firstname": "Darrell ", | |
"lastname": "Issa ", | |
"party": "R", | |
"state": "California", | |
"gender": "M", | |
"worth": "283250020", |
-- Enable postgis | |
CREATE EXTENSION postgis; | |
CREATE EXTENSION postgis_topology; |
// ==UserScript== | |
// @name Survey Notes XL | |
// @namespace http://elza.me | |
// @version 0.1 | |
// @description Default to XL images. Go big or go home! | |
// @author Hayden Elza | |
// @match http://digicoll.library.wisc.edu/cgi-bin/SurveyNotes/* | |
// @require https://code.jquery.com/jquery-latest.js | |
// ==/UserScript== |
function fetchData() { | |
// Fetch data | |
//var url = 'http://testout.hoofersailing.org/feed.php' | |
//var url = 'https://ehs.wisc.edu/current-flag.php' | |
var url = 'https://endpoints.wams.doit.wisc.edu/ehs.wisc.edu/LakeConditions/Api/' | |
var response = UrlFetchApp.fetch(url, {'muteHttpExceptions': true}); | |
// Process response to object | |
var json = response.getContentText().replace(/\(|\)|;/g, ''); | |
var data = JSON.parse(json); |