Skip to content

Instantly share code, notes, and snippets.

@crh
crh / test.txt
Created August 9, 2011 00:02
test
test
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="utf-8" indent="yes" method="html" />
<xsl:template match="pubman-admin-descriptor">
<xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text>
<html>
<head>
<title>Pubman context Metadata Editor</title>
<meta name="description"
@crh
crh / gist:2351598
Created April 10, 2012 14:04
Remove Organization from Group
public void removeOrganization(String groupId, String id) throws EscidocClientException {
TaskParam tp = new TaskParam();
UserGroup updated = c.retrieve(groupId);
tp.setLastModificationDate(updated.getLastModificationDate());
// FIXME not optimal
for (Selector selector : updated.getSelectors()) {
if (selector.getContent().equals(id)) {
tp.addResourceRef(selector.getObjid());
@crh
crh / example-organization-metadata.xml
Created April 11, 2012 15:10
An example of Organization Metadata
<organizational-unit>
<dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">FIZ abc</dc:title>
<dc:description xmlns:dc="http://purl.org/dc/elements/1.1/">Very good desc</dc:description>
</organizational-unit>
<!DOCTYPE html><html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>eSciDoc Metadata Editor</title>
<meta content="eSciDoc Metadata Editor" name="description">
<meta content="escidoc, metadata editor" name="keywords">
<link href="/rest/static/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="/rest/static/css/override-bootstrap.css" rel="stylesheet" type="text/css">
</head>
@crh
crh / should-transformed-xml.html
Created April 11, 2012 15:14
SHOULD Outcome
<!DOCTYPE html><html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>eSciDoc Metadata Editor</title>
<meta content="eSciDoc Metadata Editor" name="description">
<meta content="escidoc, metadata editor" name="keywords">
<link href="/rest/static/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="/rest/static/css/override-bootstrap.css" rel="stylesheet" type="text/css">
</head>
<body>
@crh
crh / ddb-helpdesk-readme.md
Created October 2, 2012 09:24
Readme Driven Development for ddb helpdesk

[DDB Help Desk]![Build Status]

description

ddb help desk is a web application for managing ddb institutions and its users.

getting started

download

Clone the repo, git clone https://github.com/Deutsche-Digitale-Bibliothek/ddb-helpdesk, or download the latest release.

install/deploy

@crh
crh / backbone-tutorial.md
Created October 8, 2012 12:16
Backbone & Yeoman

Backbone.js and yeoman

description

this is a list tutorials for building web application using backbone.js and yeoman. We are building a Photo Gallery JS App from Backbone Fundamentals

Requirements

@crh
crh / md*.md
Created October 10, 2012 10:41
MV* Reading List