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
{ | |
"users": [ | |
{ | |
"first_name": "archana", | |
"last_name": "monika", | |
"email": "noreply@uptogether.org", | |
"role": null, | |
"metadata": { | |
"zipcode": 64512 | |
}, |
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
""" | |
amazing little snippet to convert dictionary into dot notation object | |
""" | |
from collections import namedtuple | |
import json | |
# original dictionary | |
goober = {'zebra': True, 'tronic': {'important_number': 42}} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
echo "loading env vars from: $1" | |
export $(grep -v '^#' $1 | xargs) | |
echo "all done!" |
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
# pairtree example | |
├── 0=ocfl_1.0 | |
├── 1=my_uuid_quad_tree_spec | |
├── 6ba7 | |
└── b810 | |
└── 9dad | |
└── 11d1 | |
└── 80b4 | |
└── 00c0 | |
└── 4fd4 |
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
sibling_field_dist = {'mods|mods(6adf01)___mods|abstract(97c301)': 150, | |
'mods|mods(6adf01)___mods|accessCondition(97c301)___@type=use and reproduction': 655, | |
'mods|mods(6adf01)___mods|language(97c301)___mods|languageTerm(548f01)___@type=code': 655, | |
'mods|mods(6adf01)___mods|location(97c301)___mods|url(6adf02)___@usage=primary': 26, | |
'mods|mods(6adf01)___mods|location(97c301)___mods|url(6adf03)___@access=preview': 26, | |
'mods|mods(6adf01)___mods|location(97c301)___mods|url(6adf04)___@usage=primary': 91, | |
'mods|mods(6adf01)___mods|location(97c301)___mods|url(6adf05)___@access=preview': 91, | |
'mods|mods(6adf01)___mods|location(97c301)___mods|url(6adf05)___@usage=primary': 78, | |
'mods|mods(6adf01)___mods|location(97c301)___mods|url(6adf06)___@access=preview': 78, | |
'mods|mods(6adf01)___mods|location(97c301)___mods|url(6adf06)___@usage=primary': 61, |
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
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.hostname = "myamazingmachine" | |
config.vm.box = "bento/ubuntu-18.04" | |
config.vm.provider "virtualbox" do |vb| |
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
\[(.+?)\]\((.+?)\) | |
`\1 <\2>`_ |
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
def funFunction(): | |
print('hey!') |
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
[ | |
{ | |
"model": "core.oaiendpoint", | |
"pk": 1, | |
"fields": { | |
"name": "Wayne Ouroboros", | |
"endpoint": "http://digital.library.wayne.edu/api/oai", | |
"verb": "ListRecords", | |
"metadataPrefix": "mods", | |
"scope_type": "setList", |
NewerOlder