Skip to content

Instantly share code, notes, and snippets.

View eulereadgbe's full-sized avatar

Elvi Nemiz eulereadgbe

  • Southeast Asian Fisheries Development Center, Aquaculture Department
View GitHub Profile
@eulereadgbe
eulereadgbe / how_to_keep_a_git_branch_up_to_date.txt
Created July 5, 2017 02:04 — forked from hardyoyo/how_to_keep_a_git_branch_up_to_date.txt
How to keep a git branch up to date with an upstream master branch.
git fetch --all
git checkout master #may have to git stash first, but, don't forget, you need to be ON THE MASTER BRANCH before you proceed
git pull upstream master
git push origin master
git pull origin master #not necessary but a nice sanity check
git checkout BRANCHNAME
git rebase -i master
#!/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;
//DSpace 5
select
h.handle,
rp.policy_id,
bit.sequence_id,
bitmv.text_value,
bit.internal_id,
brp.policy_id
from handle h
join item i
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@eulereadgbe
eulereadgbe / Install DSpace 6 with Mirage 2 theme.ipynb
Created October 30, 2021 13:29 — forked from otuoma/Install DSpace 6 with Mirage 2 theme.ipynb
How to install DSpace 6 with Mirage 2 enabled
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eulereadgbe
eulereadgbe / bookview-banner.html
Created February 10, 2022 01:15 — forked from terrywbrady/bookview-banner.html
Sample FlexPaper Document Viewer for XMLUI
<!--
The contents of this file are subject to the license and copyright
detailed in the LICENSE and NOTICE files at the root of the source
tree and available online at
http://www.dspace.org/license/
-->
<div id="close"><a href="javascript:window.close();">Close Book Viewer</a></div>