Skip to content

Instantly share code, notes, and snippets.

View bacalj's full-sized avatar
🤔

Joseph Bacal bacalj

🤔
View GitHub Profile
@bacalj
bacalj / send-email.js
Created April 2, 2022 18:32
Netlify's Example Nodemailer Function, thanks Netlify CLI
// with thanks to https://github.com/Urigo/graphql-modules/blob/8cb2fd7d9938a856f83e4eee2081384533771904/website/lambda/contact.js
const process = require('process')
const { promisify } = require('util')
const sendMailLib = require('sendmail')
const { validateEmail, validateLength } = require('./validations')
const sendMail = promisify(sendMailLib())
@bacalj
bacalj / name_coach_api_request_examples.js
Last active June 17, 2024 07:08
Example ajax calls that work with NameCoach API V4
var ncapi = 'https://www.name-coach.com/api/private/v4/';
/*
generate and fill in an API token from your NameCoach admin
*/
var token = '';
/*
You will need to fill in an email address of a person in your NameCoach database.
Then, given the participant's email, get their data.
@bacalj
bacalj / dataflowarduino.ino
Last active May 8, 2024 14:49
Dataflow + Arduino Firmware - supports BB Gripper and potentiometer/servo assembly
/*
* ----------------------------------------------------------------------------------------------------
* Muscle SpikerShield Arduino UNO Code for Interface with Dataflow
* This code is up to date for use with the "Claw Pro R3"
*
* This sketch allows for two way communication between Concord Consortium's Dataflow Tile and
* Backyard Brains' Muscle Spiker Shield & associated hardware.
*
* Based on original script by Backyard Brains 2015, by Marcio Amorim and Stanislav Mircic
* Adapted by Concord Consortium, 2023.
@bacalj
bacalj / -NowWZcEckAdagFe_CUl.json
Last active February 22, 2024 15:32
demoName=CLUE4Pip&fakeClass=1&fakeUser=student:7&problem=3.1&unit=moth
{
"rowMap": {
"B0rVs5_fa3cLYNH_": {
"id": "B0rVs5_fa3cLYNH_",
"isSectionHeader": true,
"sectionId": "start",
"tiles": []
},
"GTGXP-3bG7lQpFmt": {
"id": "GTGXP-3bG7lQpFmt",
@bacalj
bacalj / moondo.md
Last active February 8, 2024 20:24
Getting a local Moodle running with Lando
@bacalj
bacalj / ccemgfsr.ino
Last active September 28, 2023 12:34
September, 2023 Dataflow + BackyardBrains
/*
* ----------------------------------------------------------------------------------------------------
* Muscle SpikerShield Arduino UNO Code for Interface with Dataflow
* This code is up to date for use with the "Claw Pro R3"
*
* This sketch allows for two way communication between Concord Consortium's Dataflow Tile and
* Backyard Brains' Muscle Spiker Shield & associated hardware.
*
* Based on original script by Backyard Brains 2015, by Marcio Amorim and Stanislav Mircic
* Adapted by Concord Consortium, 2023.
@bacalj
bacalj / ccemgfsr01.ino
Created August 7, 2023 18:12
Dataflow + BYB Bridge - v1
/*
* ----------------------------------------------------------------------------------------------------
* THIS IS FOR THE 2022 Version of the Gripper
*
* Muscle SpikerShield Arduino UNO Code for Interface with Dataflow
*
* This sketch allows for two way communication between Concord Consortium's Dataflow Tile and
* Backyard Brains' Muscle Spiker Shield & associated hardware.
*
* Based on original script by Backyard Brains 2015, by Marcio Amorim and Stanislav Mircic
@bacalj
bacalj / ccemgfsr2023.ino
Created August 7, 2023 18:10
Concord Consortium Dataflow + Backyard Brains Muscle Spiker Shield Bridge Scripts (v2)
/*
* ----------------------------------------------------------------------------------------------------
* THIS IS FOR THE 2023 Version of the Gripper
*
* Muscle SpikerShield Arduino UNO Code for Interface with Dataflow
*
* This sketch allows for two way communication between Concord Consortium's Dataflow Tile and
* Backyard Brains' Muscle Spiker Shield & associated hardware.
*
* Based on original script by Backyard Brains 2015, by Marcio Amorim and Stanislav Mircic
@bacalj
bacalj / ccemgfsr01.ino
Created August 7, 2023 15:14
Concord Consortium Dataflow + Backyard Brains Muscle Spiker Shield Bridge Scripts
/*
* ----------------------------------------------------------------------------------------------------
* THIS IS FOR THE 2022 Version of the Gripper
*
* Muscle SpikerShield Arduino UNO Code for Interface with Dataflow
*
* This sketch allows for two way communication between Concord Consortium's Dataflow Tile and
* Backyard Brains' Muscle Spiker Shield & associated hardware.
*
* Based on original script by Backyard Brains 2015, by Marcio Amorim and Stanislav Mircic
@bacalj
bacalj / ccemgfsr2023.ino
Created June 27, 2023 12:53
Dataflow + BYB Gripper 2023
/*
* ----------------------------------------------------------------------------------------------------
* Muscle SpikerShield Arduino UNO Code for Interface with Dataflow
*
* This sketch allows for two way communication between Concord Consortium's Dataflow Tile and
* Backyard Brains' Muscle Spiker Shield & associated hardware. The FSR and EMG sensor pins are set
* to match the 2023 Gripper/Shield combination.
*
* Based on original script by Backyard Brains 2015, by Marcio Amorim and Stanislav Mircic
* Adapted by Concord Consortium, 2023.