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
/* | |
* Your Stylesheet | |
* | |
* This stylesheet is loaded when Atom starts up and is reloaded automatically | |
* when it is changed. | |
* | |
* If you are unfamiliar with LESS, you can read more about it here: | |
* http://www.lesscss.org | |
*/ |
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
grep -rl "<fedora-model:hasModel rdf:resource=\"info:fedora/islandora:iaBookCModel\">" fedora/data/objectStore/ | xargs sed -i 's@<fedora-model:hasModel rdf:resource="info:fedora/islandora:iaBookCModel">@<fedora-model:hasModel rdf:resource="info:fedora/islandora:bookCModel">@g' |
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 | |
//Thanks to Swithun Crowe | |
function do_query($query, $params=array()) { | |
$result = pg_query_params($query, $params) or die('Query failed: ' . pg_last_error()); | |
return $result; | |
} | |
?> |
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 | |
function do_var_dump($object) { | |
echo "<pre>"; | |
var_dump($object); | |
echo "</pre>"; | |
} | |
?> |
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
RELS_EXT_hasModel_uri_ms:info\:fedora/islandora\:pageCModel AND fedora_datastreams_ms:OBJ AND fedora_datastreams_ms:TIFF AND RELS_EXT_isPageOf_ms:info\:fedora/[namespace]\:[id] |
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
#!/bin/bash | |
function make_page_djvu { | |
i=$1 | |
j=`basename $i .tif` | |
convert $i $j.jpg | |
c44 $j.jpg $j.djvu | |
if [ -f UYLY205-2.djvu ]; then | |
djvm -i UYLY205-2.djvu $j.djvu | |
else | |
cp $j.djvu UYLY205-2.djvu |
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
function man() { | |
CLRD_MAN=$ZSH/plugins/colored-man-pages/colored-man-pages.plugin.zsh | |
PGR='less' | |
OTHER_OPTS=0 | |
while getopts ":P:" opt; do | |
case $opt in | |
P ) PGR=$OPTARG ;; | |
? ) OTHER_OPTS=1 ;; | |
esac | |
done |