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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Generated from archetype; please customize. | |
--> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>uk.ac.york.cserv.wsg.groovy.onlinedirectory</groupId> |
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
package uk.me.nvt.PerformanceNanoTimeDrift; | |
/** | |
* Measures the maximum observed drift between the millisecond timer and the nano timer | |
* (which will usually be provided by Time Stamp Counter). | |
* Src - "The Well-Grounded Java Developer" (Listing 6.1, pg. 165) | |
*/ | |
public class App { | |
public static void main(String[] args) { | |
System.out.println("Hello World!"); |
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
#!/usr/local/bin/python | |
from sys import argv | |
import os | |
import math | |
import urllib2 | |
def deg2num(lat_deg, lon_deg, zoom): | |
lat_rad = math.radians(lat_deg) | |
n = 2.0 ** zoom |
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
<script> | |
document.addEventListener( 'wpcf7mailsent', function( event ) { | |
setTimeout(function(){ | |
window.location.href = 'https://example.com/thank-you/'; | |
}, 5000); | |
}, false ); | |
</script> |