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
<!DOCTYPE html> | |
<html lang="en"> | |
<meta charset="utf-8"> | |
<title>New Projection</title> | |
<style> | |
.stroke { | |
fill: none; | |
stroke: #000; | |
stroke-width: 2px; | |
} |
This file has been truncated, but you can view the full file.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>NEAREST interpolation test</title> | |
<link rel="stylesheet" href="pannellum.css"/> | |
<script type="text/javascript" src="pannellum.js"></script> | |
<style> | |
html, body, #panorama { | |
height: 100%; |
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
#!/usr/bin/env python | |
''' | |
Decodes encrypted configuration file for Ricoh Theta desktop application. | |
I'm not sure what the point of double AES encryption is when the key is | |
embedded right in the executable. | |
Requires pycryto | |
Matthew Petroff <https://mpetroff.net/>, 2016 |
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
# /etc/fail2ban/jail.local | |
[jupyterhub] | |
enabled = true | |
port = 443 | |
filter = jupyterhub | |
backend = systemd | |
maxretry = 6 |
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
function findSubarray(arr, subarr) { | |
for (var i = 0; i < 1 + (arr.length - subarr.length); i++) { | |
var j = 0; | |
for (; j < subarr.length; j++) | |
if (arr[i + j] !== subarr[j]) | |
break; | |
if (j == subarr.length) | |
return i; | |
} | |
return -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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> | |
<title>Navbar Template for Bootstrap</title> |
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
#!/usr/bin/python | |
# Converts between tms and xyz map tile structures | |
# October 2014, Matthew Petroff <http://mpetroff.net> | |
# Released into the public domain using the CC0 Public Domain Dedication | |
# See <http://creativecommons.org/publicdomain/zero/1.0/> | |
import os | |
import subprocess |
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
# Convert to NetCDF | |
img2grd grav.img.23.1 -Ggrav.nc -Rg | |
# Reencode since gdal didn't like NetCDF file | |
cdo -f nc4c -k lines copy grav.nc grav2.nc | |
# Create GeoTIFF | |
gdal_translate -a_srs EPSG:4326 grav2.nc grav.tif | |
# Reproject as EPSG:3857 |
NewerOlder