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/zsh | |
DIR='output' | |
for HANDLE in $@; do | |
ID=${HANDLE#http://hdl.handle.net/1903/*} | |
DEST="$DIR/$ID" | |
EXPORT_CMD="/dspace/bin/dspace export -t ITEM -i 1903/$ID -d /dspace/upload -n $ID" | |
DELETE_CMD="rm -rf /dspace/upload/$ID" | |
if [ -d $DEST ]; then |
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
% npm test -- --runInBand | |
> DART@2.0.9 test /Users/westgard/Dev/dart | |
> jest "--runInBand" | |
FAIL plugins/network/sftp_client.test.js (7.376 s) | |
● Console | |
console.log | |
[ |
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
import csv | |
class State(): | |
def __init__(self, row): | |
self.abbrev = row["State"] | |
self.mwh = row["Megawathours"] | |
self.source = row["Energy Source"] | |
self.year = row["Year"] | |
def main(): |
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
class Weekday(): | |
def __init__(self, code): | |
if code == 'mo': | |
self.weekday = 'Monday' | |
elif code == 'tu': | |
self.weekday = 'Tuesday' | |
elif code == 'we': | |
self.weekday = 'Wednesday' | |
elif code == 'th': | |
self.weekday = 'Thursday' |
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 owl: <http://www.w3.org/2002/07/owl#> . | |
@prefix pcdm: <http://pcdm.org/models#> . | |
@prefix skos: <http://www.w3.org/2004/02/skos/core#> . | |
@prefix acl: <http://www.w3.org/ns/auth/acl#> . | |
@prefix pcdmfmt: <http://pcdm.org/file-format-types#> . | |
@prefix pcdmuse: <http://pcdm.org/use#> . | |
@prefix xml: <http://www.w3.org/XML/1998/namespace> . | |
@prefix rel: <http://id.loc.gov/vocabulary/relators/> . | |
@prefix dcterms: <http://purl.org/dc/terms/> . | |
@prefix fedoraconfig: <http://fedora.info/definitions/v4/config#> . |
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
# launch the interactive prompt | |
python3 | |
# import the module | |
import rdflib | |
# create an empty graph object | |
g = rdflib.Graph() | |
# parse a turtle file |
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"> | |
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/> | |
<script src="http://cmx.io/v/0.1/cmx.js"></script> | |
<body> | |
<scene id="scene1"> | |
<label t="translate(0,346)"> | |
<tspan x="0" y="0em">One day at Big Research U ...</tspan> |
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"> | |
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/> | |
<script src="http://cmx.io/v/0.1/cmx.js"></script> | |
<body> | |
<scene id="scene1"> | |
<label t="translate(0,346)"> | |
<tspan x="0" y="0em">One day on the internet...</tspan> |
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"> | |
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"> | |
<script src="http://cmx.io/v/0.1/cmx.js" charset="utf-8"></script> | |
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style> | |
<body> | |
<div style="max-width:900px; -webkit-transform:rotate(0deg)"> | |
<scene id="scene1"> |