Skip to content

Instantly share code, notes, and snippets.

View gmccoy's full-sized avatar

Greg McCoy gmccoy

  • Purdue University
  • West Lafayette, IN
  • 17:32 (UTC -04:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am gmccoy on github.
  • I am gmccoy (https://keybase.io/gmccoy) on keybase.
  • I have a public key whose fingerprint is 2C63 7273 73DD 503D 0992 A9BF 04BC F9AC 476C 3455

To claim this, I am signing this object:

@gmccoy
gmccoy / nws.xsl
Created August 18, 2015 19:58
XSLT for transforming NOAA DWML weather data
<?xml version="1.0"?>
<!-- Partially inspired by https://github.com/greencoder/noaa-dwml-to-json-xslt/blob/master/noaa.xsl -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes" method="xml" encoding="utf-8" omit-xml-declaration="yes"/>
<xsl:template match="dwml">
<WeatherData>
<CurrentConditions>
<xsl:apply-templates select="/dwml/data[@type=&quot;current observations&quot;]" />

Keybase proof

I hereby claim:

  • I am gmccoy on github.
  • I am gmccoy (https://keybase.io/gmccoy) on keybase.
  • I have a public key whose fingerprint is C4FA 1767 B763 8F6C A756 BBE0 AE4F A2BE 65F4 95B0

To claim this, I am signing this object: