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 __future__ import print_function | |
import pickle | |
import os.path | |
from googleapiclient.discovery import build | |
from google_auth_oauthlib.flow import InstalledAppFlow | |
from google.auth.transport.requests import Request | |
# If modifying these scopes, delete the file token.pickle. | |
SCOPES = ['https://www.googleapis.com/auth/drive', | |
'https://www.googleapis.com/auth/drive.file', |
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
#!/usr/bin/env python | |
""" Converts an image to a csv of pixel values. """ | |
# be sure to "pip3 install pillow" before running | |
import sys | |
from PIL import Image, UnidentifiedImageError | |
E_FILENOTFOUND = 1 | |
E_PERMISSIONS = 2 | |
E_FILETYPE = 3 |
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> | |
<script> | |
function validateBox() { | |
var button = document.getElementById('mycheckbox'); | |
if ( button.checked === true ) { setTimeout(function () { | |
button.checked = false; }, 800); } | |
} | |
</script> | |
<body> |