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
<div class="post" id="post-<?php the_ID(); ?>"> | |
<div id="prev-post"><?php previous_post_link('%link', '«') ?></div> | |
<div id="next-post"><?php next_post_link('%link', '»') ?></div> | |
... | |
</div> | |
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
Here is a simple jQuery plugin to make a table header fixed on top of a div when this is scrolled. | |
Using the code from twitter bootstrap documentation page, this code is customized for table header. | |
Create the table with following layout - | |
<div class="row fixed-table"> | |
<div class="table-content"> | |
<table class="table table-striped table-fixed-header" id="mytable"> | |
<thead class="header"> | |
<tr> | |
<th>Email Address</th> |
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 xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:dc="http://purl.org/dc/elements/1.1/" | |
xmlns:foaf="http://xmlns.com/foaf/0.1/" | |
xmlns:bibo="http://purl.org/ontology/bibo/"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html" /> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
</head> | |
<body> |
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
@prefix : <#> . | |
@prefix fuseki: <http://jena.apache.org/fuseki#> . | |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> . | |
@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> . | |
[] rdf:type fuseki:Server ; | |
fuseki:services ( |
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
rapper -i turtle -o dot model.ttl | dot -Tpdf -omodel.pdf |
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
prefix hxl: <http://hxl.humanitarianresponse.info/ns/#> | |
SELECT ?population ?count ?date | |
WHERE { | |
GRAPH ?g { | |
?population hxl:personCount ?count . | |
?g hxl:validOn ?date . | |
} | |
} ORDER BY ?population DESC(?date) |
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
<?php | |
// this is the directory where you have your json files from the moves API stored | |
$dir = "/my/input/dir"; | |
// this is where your geojson files will be stored | |
$outdir = "/my/output/dir"; | |
$geojsonplaces = [ | |
"type" => "FeatureCollection", | |
"features" => [ ], | |
]; |
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
// Add this to the functions.php of your wordpress Theme. Get the URL for the tracking pixel from your Piwik instance. | |
function feedFilter($query) { | |
if ($query->is_feed) { | |
add_filter('the_content','feedContentFilter'); | |
} | |
return $query; | |
} | |
add_filter('pre_get_posts','feedFilter'); |
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
country | usd | |
---|---|---|
MNE | 212071344 | |
EST | -3643199 | |
HUN | -6611887 | |
JOR | 1289290880 | |
ERI | 42736336 | |
SVN | -1732240 | |
MKD | 116353200 | |
MYS | 10559068 | |
SRB | 143880736 |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<head> | |
<title>UNHCR Refugee Flows 2012</title> | |
<style> | |
body{ | |
font-family: "Helvetica", sans-serif; | |
text-align: center; | |
} |
OlderNewer