This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Quote Animation</title> | |
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script> | |
<style> | |
body { | |
margin: 0; |
This file contains 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
import os | |
import json | |
import time | |
from dotenv import load_dotenv | |
from cryptography.fernet import Fernet | |
load_dotenv() | |
timestamp = time.time() | |
my_secret_key = str.encode(os.getenv('email_confirmation_secret_key')) | |
crypto = Fernet(my_secret_key) |
This file contains 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
;; CMPU 101 Assignment 3 | |
;; <YOUR NAME> | |
;; | |
;; Description: Uses a list of bouncing balls to animate many balls | |
;; of different sizes and colors, all moving in the same scene at | |
;; different speeds. | |
(require 2htdp/image) | |
(require 2htdp/universe) |
This file contains 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
;; Signature | |
;; String -> String | |
;; Purpose | |
;; adds "!" to the end of s | |
;; Examples | |
(check-expect (yell "hello") "hello!") ; elborate - "hello" + "!" | |
(check-expect (yell "goodbye") "goodbye!") ; elborate - string-append "goodbye" "!" |
This file contains 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
;;--------------------------- | |
;; arithmetic expression | |
;;--------------------------- | |
(* 3 5 7) | |
(* (* 3 5) 7) | |
;;--------------------------- |
This file contains 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
function email_Monthly_Coach_Stats() { | |
// get the current sheet as a 2d array | |
sheetData = getSheetData(); | |
// filter the data by current month | |
sheetData = filterByCurrentMonth(sheetData); | |
// process the sheet and get back a nicely formatted object for emailing | |
sheetData = processData(sheetData); |
This file contains 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
{% extends "layout.html" %} | |
{% block title %} | |
Apology | |
{% endblock %} | |
{% block main %} | |
<img alt="{{ top }}" class="border" src="http://memegen.link/custom/{{ top | urlencode }}/{{ bottom | urlencode }}.jpg?alt=https://i.imgur.com/CsCgN7Ll.png"/> | |
{% endblock %} |
This file contains 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
from cs50 import SQL | |
import sqlite3 | |
class users_db: | |
def __init__(self, conn): | |
self.id = '' | |
self.conn = conn | |
self.c = conn.cursor() | |
def register(self, username, hash): |
This file contains 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
from flask import Flask, redirect, render_template, request, session | |
from flask_session import Session | |
# Configure app | |
app = Flask(__name__) | |
# Configure sessions | |
app.config["SESSION_PERMANENT"] = False | |
app.config["SESSION_TYPE"] = "filesystem" | |
Session(app) |
This file contains 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
from nltk.tokenize import sent_tokenize | |
def lines(a, b): | |
"""Return lines in both a and b""" | |
(a, b) = (a.split('\n'), b.split('\n')) | |
# TODO | |
return [line for line in a if line in b] |
NewerOlder