Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env perl
use Mojolicious::Lite;
get '/reference/:doi' => sub {
my $c = shift;
my $doi = $c->stash('doi');
$c->render_json({
author => "Author id goes here",
journal => "The great journal with doi $doi",
<script src="/mojo/jquery/jquery.js"></script>
<span id='foo'></span>
<script>//<![CDATA[
$(document).ready(function() {
$("#foo").html("hello, world");
});
//]]></script>
%= stylesheet "http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css";
</head>
<body>
<pre>
Sample:
<span id='foo'></span>
</pre>
<script type='text/template' id='ref_template'>
journal : <b><%%= journal %><b>
%= javascript 'http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js';
#!/usr/bin/env perl
use Mojolicious::Lite;
app->hook(after_dispatch => sub {
my $c = shift;
$c->res->headers->header('Access-Control-Allow-Origin' => '*');
} );
my @refs = map
wget --mirror http://example.com
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix : <http://www.example.org#> .
@base <http://www.example.com/monica-bundle.ttl> .
<>
a prov:Bundle, prov:Entity;
prov:wasAttributedTo :postEditor;
@prefix bibo: <http://purl.org/ontology/bibo/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix dcmitype: <http://purl.org/dc/dcmitype/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix gcis: <http://data.globalchange.gov/gcis.owl#> .
@prefix org: <http://www.w3.org/ns/org#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix bibo: <http://purl.org/ontology/bibo/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix dcmitype: <http://purl.org/dc/dcmitype/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix gcis: <http://data.globalchange.gov/gcis.owl#> .
@prefix org: <http://www.w3.org/ns/org#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
---
- confidence: |-
Observed trends have been demonstrated by a broad range of methods over the past 20+ years based on best available data; projected precipitation and river-flow responses to greenhouse gas increases are robust across large majorities of available climate (and hydrologic) models from scientific teams around the world.
Confidence is therefore judged to be high that annual precipitation and river-flow increases are observed now in the Midwest and the Northeast regions.
Confidence is high that very heavy precipitation events have increased nationally and are projected to increase in all regions.
Confidence is high that the length of dry spells is projected to increase in most areas, especially the southern and northwestern portions of the contiguous United States.
evidence: |-
The key message and supporting chapter text summarizes extensive evidence documented in the inter-agency prepared foundational document,<tbib>50d47cc1-5a16-4f5c-bb08-bf6f475a5bb8</tbib> Ch. 2: Our C