Skip to content

Instantly share code, notes, and snippets.

@QPC-github
QPC-github / SwiftlintBuildPhase.sh
Created July 23, 2023 15:42 — forked from mdb1/SwiftlintBuildPhase.sh
An Xcode BuildPhase to enforce a minimum SwiftLint version
if [[ "$(uname -m)" == arm64 ]]; then
export PATH="/opt/homebrew/bin:$PATH"
fi
SWIFTLINT_VERSION=$(swiftlint --version | awk '{print $NF}')
MIN_VERSION="0.52.4"
# Only run if `installed version` >= `minimum version`.
if [[ "$(printf '%s\n' "$MIN_VERSION" "$SWIFTLINT_VERSION" | sort -V | head -n1)" == "$MIN_VERSION" ]]; then
echo "SwiftLint version: $SWIFTLINT_VERSION"
@QPC-github
QPC-github / Miner.txt
Created July 23, 2023 15:39
Miner Data
thijs (182280,21.07 13:54)
alexxoffi (142760,23.07 14:58)
warshack (133400,21.07 06:54)
moistcr1tikal (127380,22.07 07:56)
xqc (118490,23.07 07:57)
fenohs (105570,15.07 20:43)
en_djinn (99580,23.07 17:28)
zeddy (92660,22.07 06:56)
mryagut (77820,21.07 21:25)
nohandsgamer (74670,23.07 05:57)
Advanced Open Data Lab: Trusted Databases
When we need to take a “trust but verify” approach it is useful to be able to accurately compose valid W3C SPARQL queries for the Wikidata Knowledge Graph.
Define a repeatable and verifiable strategy for composing a query that expresses the following user goal:
Goal: Provide a list of celebrities who are taller than 5’7” and shorter than 5’11”
Remember to take care to build up the query logically, adding terms and constraints that reflect current Wikidata usage. When we are unsure of the schema/vocabulary one strategy is to look at an indicative typical instance to see how things are described. Pay attention to units of measure issues too. Think out loud and show your workings!
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 3.
Time,Situation,Choice1,Choice2,Choice3,Scene,Weather/Lighting,Sounds,Agents Present,Items Present,Items Carried,Image Description
"1:00 PM","Emma arrives at her childhood home in a small town after a long flight from NYC","Emma chooses to take a nap and rest before catching up with her family","Emma chooses to call her family immediately and schedule a visit","Emma chooses to explore the town and reconnect with her roots","Emma's childhood home, a cozy two-story house with a white picket fence and a garden out front","Overcast and grey, with a slight chill in the air","The sound of birds chirping and a gentle breeze rustling the leaves of the trees","Emma, alone","Emma's luggage, a small suitcase and a purse","Emma's phone and wallet","A cozy looking bedroom with a twin bed and a fluffy white comforter, a small window with light coming in, a desk with a lamp and a small bookcase filled with books"
"3:00 PM","Emma wakes up from her nap and decides to call her family","Emma chooses to schedule a visit for the n
We are experimenting with topical search engines.
Here are a few for us to experiment around. Consider them carefully, and the kinds of questions that they might help us answer.
Here are 4 topical search engines with broad coverage but different strengths and weaknesses and that are relevant in different situations.
* Data Commons, https://cse.google.com/cse?cx=91eee116c31f8489e - specializes in quantitative dataset integration, with especially good coverage of the US, including scientific and official govt datasets, census etc.
* Gov UK, https://cse.google.com/cse?cx=40b83d4842db44935 - official pages from the UK government (including speeches and archived materials, don't believe everything you read. Especially about Brexit.).
* Wikipedia, https://cse.google.com/cse?cx=957495ed8669b4e70 - famous general purpose encyclopedia. Good but you probably know it already. Maybe useful for looking up Wikidata IDs?
* YouTube https://cse.google.com/cse?cx=f01b338721f06dcc0 - vast archive of videos, with lots of hel
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>async generator tests</title>
</head>
<body onload="main()">
<h1>async generator tests</h1>
<div id="output">hello world.</div>
<script>
@QPC-github
QPC-github / README.md
Created July 23, 2023 15:28 — forked from danbri/README.md
Schema.org hierarchy Sunburst

Keybase proof

I hereby claim:

  • I am MeshCollider on github.
  • I am meshcollider (https://keybase.io/meshcollider) on keybase.
  • I have a public key whose fingerprint is 1AAD CC2B 9597 DD84 3AB0 6E57 9F96 6E38 47B5 1DA1

To claim this, I am signing this object:

# Copyright (c) 2021 Samuel Dobson
# Copyright (c) 2021 Russell O'Connor
# Copyright (c) 2017, 2020 Pieter Wuille
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
-----BEGIN PGP PUBLIC KEY BLOCK-----
xsFNBFlm5UcBEADFhn2Tcfr7gtsLRj9dzHGPoZYjc8Jy7wceqT8918lqaULJKgDW
vkEWCVOHRlrr/h1ugldouTRv3k8cdzhCR9YBakVJ3vBmn73CvHQl57jGRSogyqm5
hb6IXJkBdualnZVFvCDV37VYeyuSYkJ+DL3c2wEjC2gdQKUsc8ePrJZZEMJVScdD
hoXR/sPnu8P5yHOi56XGJi9395GUmmxJKNucD4HXjSq+7yTTs5GXm4niaKfcKyBy
kIGN4aEeV8sqzkN8JzNH9fc8i8MPDYLW7SGljpLSnIvIsdBRjXXBHwRnfmGEO7lF
sVTyepUUYX3GhLcCNhZjoMkpagVjSpQPj1gylSM4EFkmU2AgK/iEzqB7Ay4WC8EE
E2HrcN0ysjyhuyntFwMa1cze99vtfOIQnVJ8E58AvsOs9+xYz8DkbYntCHDD+Zcv
y200/knT1jJSZMXkiDciLjGSeFFbh6H+VpaFUKjy3G3yJC4BTXwnACga5/WPsgmK