View holidayhours.php
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 | |
$holidays = json_decode(file_get_contents('your unique URL with your own API key and other settings goes here'),true); | |
if (!empty($holidays['events'])) { | |
echo "<p>The library will be closed for the following:</p>\n | |
<ul>"; | |
foreach($holidays['events'] as $event) { | |
$holiday_date = date('D. M. j', strtotime($event['start'])); | |
echo '<li><strong>'.$holiday_date.'</strong> '.$event['title'].'</li>'; | |
} | |
'</ul>'; |
View cvjson
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
[ | |
{ | |
"op": "core/column-split", | |
"description": "Split column Column 1 by separator", | |
"engineConfig": { | |
"facets": [], | |
"mode": "row-based" | |
}, | |
"columnName": "Column 1", | |
"guessCellType": true, |
View gist:7223014
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
<!--Database custom events--> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$('a.db_name').each(function(){ | |
var db_name = $(this).text(); | |
$(this).click(function(){ | |
_gaq.push(["_trackEvent", "linkOut", "database", db_name]); // create a custom event | |
}); | |
}); | |
}); |
View cvomatic
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
[ | |
{ | |
"op": "core/column-split", | |
"description": "Split column Column 1 by separator", | |
"engineConfig": { | |
"facets": [], | |
"mode": "row-based" | |
}, | |
"columnName": "Column 1", | |
"guessCellType": true, |