This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 2315, | |
"name": "Adolescencia y libertad en Guatemala: respuestas estatales a las transgresiones penales de adolescentes", | |
"handle": "88435/dsp01hx11xf301", | |
"type": "item", | |
"link": "/rest/items/2315", | |
"expand": [ | |
"metadata", | |
"parentCollection", | |
"parentCollectionList", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "json" | |
doi = ARGV[0] | |
if doi == nil | |
puts "Must provide a DOI" | |
return | |
end | |
# List of files from Globus | |
# fetch via https://github.com/pulibrary/rdss-handbook/blob/main/globus_cli.md#a-complete-example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DESCRIPTION: | |
# | |
# Returns a list of files (assets) for a given path. | |
# | |
# This script uses iterators to handle cases where there are many files | |
# in the given path. Therefore the first time you call it you give it a | |
# `path` and the script will give you back an interator. Call the script | |
# again with the `iterator` to start iterating over the list of files. | |
# | |
# Call it as many times until the return includes `iterated complete="true"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<!-- what does this code do? --> | |
<script src="leequery.js"></script> | |
</head> | |
<body> | |
<h1>Playing with JavaScript</h1> | |
<p> | |
This is a paragraph with a button: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="https://cdn.jsdelivr.net/npm/fuse.js/dist/fuse.js"></script> | |
</head> | |
<body> | |
<input type="text" id="searchTerms" placeholder="text to search" /> | |
<button id="searchButton">Search</button> | |
<div id="searchResults"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ======================================================================= | |
# tagAdd - adds a tag (term) to the dictionary | |
# | |
# Usage: | |
# | |
# script.execute :in file:/Users/correah/src/mediaflux/tagAdd.tcl :arg -name tagName "tagXX" :arg -name tagDescription "this is the tag XX" | |
# | |
# ======================================================================= | |
set log_name "homework-2023-03-24" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# reference: https://www.atlassian.com/git/tutorials/git-hooks | |
# | |
# To use this Git hook in a given repository: | |
# 1. copy the content to .git/hooks/ | |
# 2. make it an executable: chmod u+x .git/hooks/pre-commit | |
# | |
# Once installed, everytime you issue `git commit` it will make sure the file vault.yml has the | |
# expected token to indicate that is encrypted. If the token is not found we assume the file is | |
# NOT encrypted and reject the commit. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ define "content" }} | |
<style> | |
em { | |
background: #e9e91966; | |
} | |
</style> | |
<div class="row"> | |
<div class="col-md-4"> | |
<form action="/search" method="GET"> | |
<input type="text" id="q" name="q" value="{{ .Q }}" placeholder="enter text" autofocus/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ define "content" }} | |
<style> | |
/* https://stackoverflow.com/a/22955585/446681 */ | |
.input-group{ | |
width: 100%; | |
} | |
.input-group-addon{ | |
width: 15%; | |
text-align: left; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Parses a file with the output of `passenger-status` and outputs a | |
# tab delimited list with the date and number of requests in queue | |
# that `passenger-status` reported. | |
# | |
# The file `passenger_status.log` is created with via a cron job that | |
# runs every X minutes as follows: | |
# | |
# /path/to/.gem/gems/passenger-5.1.12/bin/passenger-status >> ./logs/passenger_status.log | |
# | |
# |
NewerOlder