Skip to content

Instantly share code, notes, and snippets.

Avatar

Bram Luyten bram-atmire

View GitHub Profile
@bram-atmire
bram-atmire / Demo DSpace 6.postman_collection.json
Last active Dec 22, 2020
Example login and item creation calls for DSpace 6 REST API
View Demo DSpace 6.postman_collection.json
{
"info": {
"_postman_id": "b458c944-8eef-44a2-b5cd-c4bcf44bc7f2",
"name": "Demo DSpace 6",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Login",
"request": {
@bram-atmire
bram-atmire / code.gs
Created Jul 19, 2019
Google Sheets: Remove authority keys from selected cells
View code.gs
function onOpen() {
SpreadsheetApp.getUi().createMenu("Atmire")
.addItem('Remove Authorities','removeAuthorities')
.addToUi();
}
function removeAuthorities() {
var activeSheet = SpreadsheetApp.getActiveSheet();
var selection = activeSheet.getSelection();
var range = selection.getActiveRange();
@bram-atmire
bram-atmire / findFullText.gs
Last active Jul 16, 2019
DSpace helper Google Apps Script to retrieve full text from CORE discovery
View findFullText.gs
function onOpen() {
SpreadsheetApp.getUi().createMenu("Atmire")
.addItem('Find Full Text','findFullText')
.addToUi();
}
function findFullText() {
var yourapikey = "REPLACEWITHYOURAPIKEY";
var sheet = SpreadsheetApp.getActiveSpreadsheet();
View keybase.md

Keybase proof

I hereby claim:

  • I am bram-atmire on github.
  • I am bluyten (https://keybase.io/bluyten) on keybase.
  • I have a public key whose fingerprint is 4444 5CFC 51C6 6990 E999 F2D0 78B4 ED5B E57B 4F90

To claim this, I am signing this object:

@bram-atmire
bram-atmire / settings.xml
Created Oct 4, 2014
/.m2/settings.xml Example for DSpace development
View settings.xml
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>bram-common</id>
<properties>
<!-- fixed defaults -->
<dspace.port>8080</dspace.port>
View simplebaget.gs
function calculateBartBagetBill() {
var ss, sheet, cell, regExp, threads, j, mails, i, mail, body, match, broodje, date;
ss = SpreadsheetApp.getActiveSpreadsheet();
sheet = ss.getSheets()[0];
cell = sheet.getRange("A1");
threads = GmailApp.search('subject:Bram to:bartbaget@skynet.be after:2013/11/01 before:2014/03/01');
for (j = 0; j < threads.length; j++) {
mails = threads[j].getMessages();
for (i = 0; i < mails.length; i++) {