This file contains hidden or 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 'java' | |
| require 'json' | |
| require 'atomic' | |
| require 'tempfile' | |
| require_relative 'dependency_set' | |
| require_relative 'streaming_json_reader' | |
| require_relative 'cycle_finder' | |
| class StreamingImport |
This file contains hidden or 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_relative './reformatter' | |
| ### AM HGARC object props | |
| # Read in props data to dataframe | |
| archivemanager_object_props = Polars.read_csv('data/archivemanager/object_properties_escaped.csv',dtypes:{'node_id'=>:str}) | |
| # Read aspects data to dataframe | |
| archivemanager_object_aspects = Polars.read_csv('data/archivemanager/object_aspects.csv',dtypes:{'node_id'=>:str}) | |
| # Read hierarchy data to dataframe |
This file contains hidden or 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
| javascript: (function() { | |
| navigator.clipboard.writeText(document.URL + "#:~:text=" + window.getSelection().toString()); | |
| })(); |
This file contains hidden or 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
| # python 3.7.0. This script pulls out specified fields from EBSCO's "Generic bibliographic management format" | |
| # and transforms the data to a csv | |
| import re | |
| class RIS: | |
| """ RIS file structure """ | |
| def __init__(self, in_file=None): | |
| """ Initialize and parse input """ | |
| self.records = [] | |
| if in_file: |
This file contains hidden or 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
| # goal of this script is to find all places that have a Twitter trend available, tapping into Twitter's trends/available API feed, pulling out specific fields, and populating a pipe delimited file. | |
| # import libraries | |
| import twitter | |
| import re | |
| import json | |
| import fileinput | |
| import collections | |
| import os | |
| import sys |