-
Stash any unstaged changes
-
Rebase to desired commit
git rebase -i HEAD~2
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
#!/bin/bash | |
COUNTER=0 | |
while [ $COUNTER -lt 10000 ]; do | |
xdotool click 1 | |
sleep 0.001s | |
echo The counter is $COUNTER | |
let COUNTER=COUNTER+1 | |
done |
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
<html> | |
<head> | |
<title>Coastal Data Access Matrix</title> | |
<style> | |
.Layers-Table { | |
font-family: Verdana, Arial, Helvetica, sans-serif; | |
font-size: 14px; | |
font-weight: normal; | |
border-left: 1px solid black; | |
border-bottom: 1px solid black; |
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
# -*- coding: utf-8 -*- | |
#------------------------------------------------------------------------------ | |
# feature_class_to_postgres_v3.py | |
# Load county dataset from feature class to a table in postgres. | |
# Hayden Elza ([email protected]) | |
# Created: 2018-08-09 | |
# Modified: 2018-08-20 | |
#------------------------------------------------------------------------------ | |
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 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); |
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
// ==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== |
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
-- Enable postgis | |
CREATE EXTENSION postgis; | |
CREATE EXTENSION postgis_topology; |
This file has been truncated, but you can view the full file.
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
[ | |
{ | |
"rank": "1", | |
"chamber": "Rep.", | |
"firstname": "Darrell ", | |
"lastname": "Issa ", | |
"party": "R", | |
"state": "California", | |
"gender": "M", | |
"worth": "283250020", |
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
<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> |
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.
OlderNewer