Skip to content

Instantly share code, notes, and snippets.

View closedLoop's full-sized avatar

Sean Kruzel closedLoop

View GitHub Profile
@closedLoop
closedLoop / google_forms_submission_to_slack_webhook.gs
Created August 2, 2024 12:29
Create a google form, create slack app add webhook, add script to google form with updated webhook + connect trigger to the form
var POST_URL = "https://hooks.slack.com/services/XXXXXXXXXXX/XXXXXXXXXXX/xxxxxxxxxxxxxxxxxxxxxx";
function onSubmit(e) {
var form = FormApp.getActiveForm();
var allResponses = form.getResponses();
var latestResponse = allResponses[allResponses.length - 1];
var response = latestResponse.getItemResponses();
var blocks = [];
for (var i = 0; i < response.length; i++) {
@closedLoop
closedLoop / install-tensorflow.sh
Last active July 19, 2016 16:07 — forked from erikbern/install-tensorflow.sh
Installing TensorFlow on EC2
# Note – this is not a bash script (some of the steps require reboot)
# I named it .sh just so Github does correct syntax highlighting.
#
# This is also available as an AMI in us-east-1 (virginia): ami-cf5028a5
#
# The CUDA part is mostly based on this excellent blog post:
# http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/
# Install various packages
sudo apt-get update