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
# STEP 1 | |
$ sudo apt update && \ | |
sudo apt -qq -y install \ | |
gcc \ | |
make \ | |
software-properties-common \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
git \ |
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
[ | |
"Product A", | |
"Product B", | |
"Product C", | |
"Product D" | |
] |
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
{ | |
"Paragraph": [ | |
{ | |
"inDocument": [ | |
{ | |
"number": "NEN-EN 15774 en", | |
"title": "Food processing machinery - Machines for processing fresh and filled pasta (tagliatelle, cannelloni, ravioli, tortellini, orecchiette and gnocchi) - Safety and hygiene requirements" | |
}, | |
{ | |
"number": "NEN-EN 13621 en", |
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
{ | |
"Paragraph": [ | |
{ | |
"_additional": { | |
"answer": { | |
"certainty": 0.76, | |
"result": "50 mm" | |
} | |
}, | |
"inDocument": [ |
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
{ | |
Get { | |
Paragraph ( | |
ask: { | |
question: "what is the distance between the frame and the outside wall of the bowl?", | |
properties: ["text"] | |
}, | |
limit:1 | |
){ | |
text |
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
{ | |
Get { | |
Paragraph ( | |
limit: 3 # show the first three results | |
nearText: { | |
concepts: ["machines to make pasta"] # the semantic query | |
certainty: 0.6 # between 0.0 and 1.0, the higher the certainty the more the document should match the query | |
}){ | |
inDocument { | |
... on Document { |
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
[ | |
{ | |
"class": "Document", | |
"properties": [ | |
{ | |
"name": "title", | |
"dataType": [ | |
"string" | |
] | |
}, |
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
{ | |
Get { | |
Publication { | |
name | |
_additional { | |
vector | |
} | |
} | |
} | |
} |
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
// https://pages.mtu.edu/~suits/notefreqs.html | |
// https://pages.mtu.edu/~suits/NoteFreqCalcs.html | |
// create web audio api context | |
var audioCtx = new(window.AudioContext || window.webkitAudioContext)(); | |
// microtonal division | |
var microtonalDiv = 24; | |
var c4 = 261.6256; | |
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
// takes an array of vectors and outputs a single mean vector | |
function meanVector(inputVectors) { | |
// sum up each dimension in a single “sum” vector | |
sums = new Array(dimensions(inputVectors)) | |
for i = 0; i < dimensions(inputVectors); i ++ { | |
for j = 0; j < inputVectors.length(); j ++ { | |
sums[i] += inputVectors[j][i] | |
} | |
} |