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
import io | |
import logging | |
import os | |
import mmap | |
import time | |
from collections.abc import Sequence | |
from struct import pack, unpack | |
LOG = logging.getLogger(__name__) |
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
from . import BaseReportCommand | |
class Command(BaseReportCommand): | |
help = 'Report on records with both .....' | |
LOGFILE = 'report_output.log' | |
TEMPLATE = 'report_template.sql' | |
SUBJECT = 'Record has ERMS data and FER flag' | |
RECIPIENTS = [ |
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
import os | |
from django.core.management.base import BaseCommand | |
from django.core.management import call_command | |
class Command(BaseCommand): | |
def handle(self, *args, **options): | |
# create a pipe and turn the output file descriptor into a Python IO object |
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
import attr | |
@attr.s | |
class BibData: | |
mms_id = attr.ib() | |
title = attr.ib() | |
status = attr.ib() | |
mod_date = attr.ib() |
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
prefixes: | | |
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | |
PREFIX dct: <http://purl.org/dc/terms/> | |
PREFIX owl: <http://www.w3.org/2002/07/owl#> | |
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> | |
PREFIX meshv: <http://id.nlm.nih.gov/mesh/vocab#> | |
PREFIX mesh: <http://id.nlm.nih.gov/mesh/> | |
PREFIX meshsv: <http://id.nlm.nih.gov/mesh/skos/> |
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
#!/usr/bin/env python3 | |
import sys | |
from argparse import ArgumentParser | |
from io import BytesIO | |
import requests | |
from lxml import etree | |
DFLT_ENDPOINT = 'https://api-na.hosted.exlibrisgroup.com' |
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 (script_fu_batch_brushes inDir inLoadType) | |
(let* | |
( | |
(varLoadStr 0) | |
(varSaveStr 0) | |
(image 0) | |
(drawable 0) | |
(newfilename 0) | |
(filename 0) | |
(varFileList 0) |
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
--- | |
secret: "/dbsecrets/pgadmin@cfom_db_int" | |
database_name: cfom_db_int | |
search: | |
prefix: | | |
SELECT "physicians"."PHYSICIANID", | |
"physicians"."FIRSTNAME", | |
"physicians"."MIDDLENAME", | |
"physicians"."LASTNAME", | |
"physicians"."MAIDENNAME", |
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
import json | |
import sys | |
from argparse import ArgumentParser, ArgumentTypeError | |
from copy import deepcopy | |
from datetime import datetime, timedelta | |
import attr | |
import requests | |
from dateutil import parser as date_parser |
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
class LogoutMixin: | |
def logout_params(self, next_page): | |
# Backend should provide this | |
return { | |
'logout_uri': next_page | |
} | |
def logout_baseurl(self): | |
# Backend should provide this | |
return '/logout' |
NewerOlder