Skip to content

Instantly share code, notes, and snippets.

View jasonclark's full-sized avatar

Jason A. Clark jasonclark

View GitHub Profile
@jasonclark
jasonclark / query-triples.py
Last active April 17, 2026 14:12
knowledge-graph-grounded LLM - Code and Sample N-Triple file
_:Na71bca5b03df4749a66d12a30355263c <http://schema.org/name> "Little Big Horn College" .
_:Nd674cdcad5ff4955a11e5d87dc102fbf <http://schema.org/keywords> "Forestry" .
_:Nd674cdcad5ff4955a11e5d87dc102fbf <http://schema.org/alternateName> "SMART FireS" .
_:N9d75b00e4cae4509b868672a9020a81d <http://schema.org/name> "Salish Kootenai College" .
_:Nd674cdcad5ff4955a11e5d87dc102fbf <http://schema.org/description> "A five-year program funded by the National Science Foundation (NSF) and led by Montana universities to better understand prescribed fires and their effects on the community of the state. It focuses on Controlled Burn, Artificial Intelligence, Forestry, and Machine Learning." .
_:Nd674cdcad5ff4955a11e5d87dc102fbf <http://schema.org/member> _:Nc10d2f9a80764adeaac7e88f081c2e09 .
_:Nc10d2f9a80764adeaac7e88f081c2e09 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/EducationalOrganization> .
_:Nd674cdcad5ff4955a11e5d87dc102fbf <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.o
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@michaelschofield
michaelschofield / semantic-directory.html
Last active August 29, 2015 13:57
Trying to markup the most semantic directory ever. Inspired by cool semantic things being done by Jason Clark and Scott Young.
# Have to get creative with Schema though. I'm actively finagling. DTs cannot contain any block level elements, but DDs can.
<dl vocab="http://schema.org/" typeof="Person">
<dt property="name">Sandra Fiegi</dt>
<dd>
<img property="image" src="example.jpg" alt="A photo of Sandra Fiegi">
</dd>
@jasonclark
jasonclark / google-books-search
Created December 18, 2010 06:15
This is a proof of concept app. I wanted to see if an alternative browse/search app for Google Books was possible. Built with PHP, HTML and the Google Ajax Search API (version 1).