Skip to content

Instantly share code, notes, and snippets.

View Eclairemoy's full-sized avatar

Liz Moy Eclairemoy

View GitHub Profile
{
"description": "IVR",
"states": [
{
"name": "Trigger",
"type": "trigger",
"transitions": [
{
"event": "incomingMessage"
},
@Eclairemoy
Eclairemoy / sendSmsReminder.js
Created February 11, 2021 20:35
sendSmsReminder.js
const airtable = require("airtable");
exports.handler = function (context, event, callback) {
const base = new airtable({apiKey: context.AIRTABLE_API_KEY}).base(context.AIRTABLE_BASE_ID);
const client = context.getTwilioClient()
let paramsMap = new Map();
base("appointments")
.select()
@Eclairemoy
Eclairemoy / sms_appointment_reminder.json
Last active February 12, 2021 23:38
sms_appointment_reminder.json
{
"description": "sms_appointment_reminder",
"states": [
{
"name": "Trigger",
"type": "trigger",
"transitions": [
{
"event": "incomingMessage"
},
@Eclairemoy
Eclairemoy / main.py
Last active December 15, 2020 17:02
Completed Code for What to Watch Bot
import json
import os
import pandas as pd
import requests
from flask import Flask, request, send_file
app = Flask(__name__)
app.config['SECRET_KEY'] = os.environ.get('FLASK_SECRET_KEY')
MOVIE_DB_API_KEY = os.environ.get('MOVIE_DB_API_KEY')
@Eclairemoy
Eclairemoy / nps.py
Created August 25, 2020 21:16
calculate nps
from twilio.rest import Client
import os
def calc_nps(scores):
promoters = 0
neutral = 0
detractors = 0
for score in scores:
if score >= 9:
promoters += 1
# tic tac toe
# TODO: adding support for a computer player to your game.
# You can start with random moves and make the AI smarter if you have time.
player_dict = {0: "*",
1: "",
2: ""}
board = [[0, 0, 0], [0, 0, 0], [0, 0, 0]]
import java.util.*;
public class GameOfLife {
// GAME OF LIFE
// Starts with a grid of square cells, each of which is in one of two possible states, alive or dead
// Every cell interacts with its 8 neighbors, which are the cells that are horizontally, vertically,
// or diagonally adjacent. At each step in time, the following transitions occur:
// Any live cell with fewer than two live neighbors dies, as if by underpopulation.
// Any live cell with two or three live neighbors lives on to the next generation.
#CracklePop Program
def crackle_pop(n):
"""
a function that takes an integer n
calls check_if_divisible on every integer between 1-100 inclusive
prints the result
keyword arguments -- integer n
"""