Skip to content

Instantly share code, notes, and snippets.

View bram-atmire's full-sized avatar

Bram Luyten bram-atmire

View GitHub Profile
@bram-atmire
bram-atmire / Demo DSpace 6.postman_collection.json
Last active December 22, 2020 08:47
Example login and item creation calls for DSpace 6 REST API
{
"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 July 19, 2019 13:17
Google Sheets: Remove authority keys from selected cells
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 July 16, 2019 04:54
DSpace helper Google Apps Script to retrieve full text from CORE discovery
function onOpen() {
SpreadsheetApp.getUi().createMenu("Atmire")
.addItem('Find Full Text','findFullText')
.addToUi();
}
function findFullText() {
var yourapikey = "REPLACEWITHYOURAPIKEY";
var sheet = SpreadsheetApp.getActiveSpreadsheet();

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 October 4, 2014 10:47
/.m2/settings.xml Example for DSpace development
<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>
@bram-atmire
bram-atmire / simplebaget.gs
Created February 22, 2014 16:57
SimpleBaget
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++) {