Skip to content

Instantly share code, notes, and snippets.


Àlex Magaz Graça rivaldi8

View GitHub Profile
View ideavimrc
set ignorecase
set incsearch
set smartcase
set hlsearch
set matchpairs+=<:>,":",/*:*/
set timeoutlen=0
map U <C-R>
rivaldi8 / dim2crossref.xsl
Created Aug 28, 2017
XSLT to convert OAI XML with DIM metadata to Crossref submission XML for DOI registration
View dim2crossref.xsl
<?xml version="1.0" encoding="UTF-8"?>
Description: Converts metadata from DSpace Intermediat Format (DIM) into
metadata following the Crossref Schema version 4.3.6.
<xsl:stylesheet xmlns:xsl=""
rivaldi8 / chapter10.clj
Last active Nov 2, 2018
Exercises from the book Clojure for the brave and true (
View chapter10.clj
; This is free and unencumbered software released into the public domain.
(ns chapter10.core
(require [clojure.string :as str])
(defn print-exercise-result
[exercise-function, number]
(println (str "== Exercise " number " =="))
(println (str (exercise-function) "\n")))
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import requests
import json
import xml.etree.ElementTree as ElementTree
from javax.servlet.http import HttpServlet
from net.sf.ehcache import Cache;