Skip to content

Instantly share code, notes, and snippets.

View thadguidry's full-sized avatar
🏠
Home, likely researching

Thad Guidry thadguidry

🏠
Home, likely researching
View GitHub Profile
@thadguidry
thadguidry / gist:2586d0cb75db697b1b1268e64fe12234
Created April 14, 2024 02:04
Troubleshooting Algolia Search in Docusaurus
From Edge Browser - Networking
REQUEST:
{
"requests": [{
"query": "join",
"indexName": "db2rest",
"params": "attributesToRetrieve: [" hierarchy.lvl0 "," hierarchy.lvl1 "," hierarchy.lvl2 "," hierarchy.lvl3 "," hierarchy.lvl4 "," hierarchy.lvl5 "," hierarchy.lvl6 "," content "," type "," url "]
attributesToSnippet: [" hierarchy.lvl1: 10 "," hierarchy.lvl2: 10 "," hierarchy.lvl3: 10 "," hierarchy.lvl4: 10 "," hierarchy.lvl5: 10 "," hierarchy.lvl6: 10 "," content: 10 "]
@thadguidry
thadguidry / GOTY_medley_2023_parts.txt
Last active December 11, 2023 01:55
Game of the Year medley
As emailed to me by Adam Price https://www.wikidata.org/wiki/Q123717445 , a co-arranger
The tracks (movements) within the medley were as follows:
1. The Game Awards Theme
2. Alan Wake
3. Baulders Gate
4. Mario Bros
5. Resident Evil 4
6. Zelda
@thadguidry
thadguidry / ai_regulation_topics.toml
Last active December 9, 2023 06:15
AI regulation topics
[dimensions]
topics = """
fairness
safety
morality
legality
ethics
data protection
personally identifiable information
data collection
@thadguidry
thadguidry / NMT_digital_document.jsonld
Created April 22, 2021 17:23
NMT digital document example
{
"@context": "http://schema.org/",
"@type": "DigitalDocument",
"identifier":"6180",
"keywords":["Nuremberg Trials, NMT 3, Judges' Trial"],
"image":"",
"dateCreated":"09 July 1947",
"name": "Affidavit concerning Rudolf Oeschey's and Oswald Rothaug's conduct as judges",
"author":"Hermann Kroher",
"about": ["Rudolf Oeschey","Oswald Rothaug"],
@thadguidry
thadguidry / gist:abac215ac25cefd6d30cb1b2122f28cf
Created February 5, 2021 23:59
Several OpenRefine JAVA_OPTIONS to print compilation as well as Hadoop and Spark temp directories
# NOTE: This file is not read if you run the Refine executable directly
# It is only read of you use the refine shell script or refine.bat
# FOR DEVELOPERS: you can copy refine.ini and rename it to refine-dev.ini
# Configurations in refine.ini will be ignored if refine-dev.ini exists
# refine-dev.ini won't be tracked by Git, so feel free to put your custom configurations in it
no_proxy="localhost,127.0.0.1"
#REFINE_PORT=3334
#REFINE_HOST=127.0.0.1
2021-01-29 14:17:05
Full thread dump OpenJDK 64-Bit Server VM (13.0.1+9 mixed mode, sharing):
Threads class SMR info:
_java_thread_list=0x000002345a2857d0, length=37, elements={
0x0000023411ddf800, 0x00000234524d4000, 0x00000234524d7000, 0x00000234524f6000,
0x00000234524f7000, 0x00000234524f9800, 0x00000234524fe000, 0x0000023452501800,
0x0000023452688800, 0x0000023452692000, 0x00000234539d7800, 0x0000023453b6a000,
0x000002345396a800, 0x0000023453c04800, 0x0000023458eb1800, 0x00000234586d3000,
0x0000023453caa000, 0x00000234598f3000, 0x0000023456c41000, 0x0000023456847800,
@thadguidry
thadguidry / gist:fe5fc51a85d38c23307ab1f545c857e1
Created January 29, 2021 18:56
debug OpenRefine nearest neighbor levenshtein
12:52:14.237 [ refine] POST /command/core/compute-clusters (9854ms)
64220 1208 ! com.fasterxml.jackson.databind.deser.std.CollectionDeserializer::deserialize (183 bytes) made not entrant
64223 1549 java.lang.reflect.Field::getFieldAccessor (35 bytes) made not entrant
64232 1350 java.util.regex.Pattern$BmpCharProperty::match (55 bytes) made not entrant
64232 1447 java.util.TreeMap::get (19 bytes) made not entrant
64235 1556 b java.util.regex.ASCII::isType (15 bytes)
64242 1557 b java.util.regex.ASCII::getType (17 bytes)
64242 1395 java.util.stream.StreamOpFlag::fromCharacteristics (37 bytes) made zombie
64243 1403 java.util.Spliterator::getExactSizeIfKnown (25 bytes) made zombie
64243 1381 java.util.stream.ReferencePipeline::<init> (7 bytes) made zombie
@thadguidry
thadguidry / gist:7f9141580696eec943133a8617f6d9d1
Created January 29, 2021 17:42
debug OpenRefine Clustering
11:37:14.361 [ refine] GET /command/core/get-clustering-functions-and-distances (78250ms)
11:37:14.363 [ refine] POST /command/core/compute-clusters (2ms)
381012 1207 com.fasterxml.jackson.core.util.BufferRecyclers::getBufferRecycler (73 bytes) made not entrant
381013 1227 com.fasterxml.jackson.core.JsonFactory::createParser (72 bytes) made not entrant
381026 1337 com.fasterxml.jackson.core.JsonFactory::_createGenerator (77 bytes) made not entrant
381026 1350 com.fasterxml.jackson.databind.SerializerProvider::findTypedValueSerializer (108 bytes) made not entrant
381027 1144 com.fasterxml.jackson.databind.deser.BeanDeserializer::deserialize (62 bytes) made not entrant
381027 1138 com.fasterxml.jackson.core.base.ParserMinimalBase::hasToken (14 bytes) made not entrant
381028 1129 com.fasterxml.jackson.core.json.ReaderBasedJsonParser::nextToken (512 bytes) made not entran
@thadguidry
thadguidry / drugs_with_rxnormid
Created January 14, 2021 16:38
All subclasses of Drugs including Pharmaceutical Products with an RXNormID
#Drugs (and all subclasses of Drugs) with an RXNormID
SELECT ?item ?itemLabel ?rxNormID
WHERE
{
?item wdt:P31/wdt:P279* wd:Q8386 .
?item wdt:P3345 ?rxNormID .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
@thadguidry
thadguidry / drug_search.txt
Created January 6, 2021 20:26
Wikidata query for drug search
# drug search
SELECT ?item ?itemLabel WHERE {
?item wdt:P31/wdt:P279* wd:Q8386 .
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:endpoint "www.wikidata.org";
wikibase:api "EntitySearch";
mwapi:search "Tylenol"; # Search for things named "Tylenol"