Skip to content

Instantly share code, notes, and snippets.

View jerschneid's full-sized avatar

Jeremy Schneider jerschneid

View GitHub Profile
@jerschneid
jerschneid / invoke-machine-learning.js
Last active April 28, 2021 23:06
Add machine learning to a web app with a single line of code
$.ajax({
url: 'https://www.nyckel.com/v0.9/functions/km6svjpscep917bc/invoke',
type: 'post',
data: formdata,
contentType: false,
processData: false,
dataType: 'json',
success: function (response)
{
displayResult(response);
@jerschneid
jerschneid / nyckel-curl-request.txt
Last active February 12, 2022 17:05
Nyckel curl request (Machine Learning API)
curl -X POST \
  -H 'Content-Type: multipart/form-data' \
  -F 'data=@UnknownFood.jpg' \
  https://www.nyckel.com/v0.9/functions/esr1ap0mqfo5v6ce/invoke