Skip to content

Instantly share code, notes, and snippets.


Dan Brickley danbri

View GitHub Profile
View gist:cfe48569a584944d22913a4a734546bd
// Load @shexjs/node to get file: access
const ShExLoader = require('@shexjs/node')({
rdfjs: require('n3') // use N3 parser to parse Turtle
const text = require('fs').readFileSync('./claim_review_shex.ttl', 'utf-8')
const mediaType = 'text/turtle'
const schemaSources = { turtle: [
View claim_review_shex.ttl
@prefix rdf: <> .
@prefix schema: <> .
@prefix sx: <> .
@prefix xsd: <> .
[] a sx:Schema ;
sx:shapes [ a sx:ShapeAnd ;
sx:shapeExprs ( [ a sx:Shape ;
sx:expression [ a sx:TripleConstraint ;
sx:max 1 ;
View Dali gpt-3
Fine Art Encyclopaedia (expensive clever version)
Dali‘s Art style can be broken down into 10 aspects which combine to deliver his distinctive take on the visual arts.
Surrealism – Dali was a leading member of the Surrealist art movement and his work features many of the defining characteristics of the style. His paintings often include dreamlike or bizarre scenes, with elements appearing in unexpected places or in impossible combinations.
View gist:447d44ead116ba971941694871da8178
Let's name the boiling points of methane, ethane, and propane are X, Y and Z degrees centrigrade.
Question 1: What are the actual numeric values for X, Y and Z?
Question 2: List several reasons why real world observations might give answers that are different.
1. The actual numeric values for X, Y and Z are -161.6, -88.6 and -42.1 degrees centigrade respectively.
View gist:4db5833c3a2e3ded7da0743cade1adbe
Explain This Like I am 6, Lesson 10
Here is some text about a biological concept - the gene regulatory network:
"""A gene (or genetic) regulatory network (GRN) is a collection of molecular regulators that interact with each other and with other substances in the cell to govern the gene expression levels of mRNA and proteins which, in turn, determine the function of the cell. GRN also play a central role in morphogenesis, the creation of body structures, which in turn is central to evolutionary developmental biology (evo-devo).
The regulator can be DNA, RNA, protein and complexes of these. The interaction can be direct or indirect (through transcribed RNA or translated protein). In general, each mRNA molecule goes on to make a specific protein (or set of proteins). In some cases this protein will be structural, and will accumulate at the cell membrane or within the cell to give it particular structural properties. In other cases the protein will be an enzyme, i.e., a micro-machine that catalyses a certain r
View gist:932d9cb29b797b9176500f68d14d47a4
I fed
Elevator pitch:
stars are conscious and communicate with other stars in a way we don't recognize because their timescales are too long for us to even think about.
then someone figures it out.
View gist:89486c0e023c1b35495f41172dc85fef
"""WASM Explained!
Here is some WASM code:
(func $getAnswer (result i32)
i32.const 42)
(func (export "getAnswerPlus1") (result i32)
call $getAnswer
View gist:e13ccc7ca6504178a6b1e06e44b87e19
PROMPT: """WASM Explained!
Here is some WASM code:
(func $add (param f32) (param f32) (result f32)
get_local 0
get_local 1
(export "add" (func 0))
View gist:1ae3afdad3f7a82177376eafc113d6eb
ShEx IconShEx2 — Simple Online Validator
PREFIX validate: <>
<S1> {
:url . + %validate:url{console.log('some url checking code here')%}
} AND {
:datePublished . ? %validate:date-time{console.log('some datetime checking code here')%}
} AND {