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
const GMAILS_EMAILS = ``.toLowerCase(); // List of emails from GMail to: line. | |
const GMAIL_EMAILS = GMAILS_EMAILS.split(',\n').map( | |
email => email.substring( | |
email.indexOf("<") + 1, | |
email.lastIndexOf(">") | |
)); | |
const GROUPS_EMAILS = ``.toLowerCase(); // List of emails from Groups CSV download. |
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 typing import Iterable, Optional, Tuple | |
import unittest | |
def longest_substring_with_two_characters(s: str) -> Optional[Tuple[int]]: | |
"""Finds the longest substring in s that contains up to 2 distinct characters.""" | |
substring_start = 0 | |
current_index = 0 | |
other_char = None | |
continuous_substring_start = 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
/** | |
* Convenient script for formatting Google Docs converted from outline PDF files. | |
* Simply copy/paste the outline text, and the script cleans up the whitespace | |
* and correctly formats the document according to the Roman numerals found | |
* in the text. | |
/** | |
* Calculates all the next Roman numeral strings we expect. | |
* @return {Array} List of outline point strings to search the | |
* document for. For example, [' I. ', ' C. ', ' 1. ']. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 requests | |
import json | |
import fnmatch | |
import os | |
import ast | |
import httplib2 | |
import mimetypes | |
import base64 | |
import logging |
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
<html> | |
<body onload="main()" style="margin:0; background-color:black; font-family:sans-serif;"> | |
<div id="body" style="width:100%; height:100%; background-image:url(image1.jpg); background-size:cover"> | |
<div style="position:absolute; top:50%; color:white; margin-left:3%"> | |
<div> | |
<span id="time"></span> | |
<span id="secs"></span> | |
</div> | |
<div id="date"></div> | |
</div> |
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
PDF Print | |
========= | |
##Installation | |
Install easily on a Windows machine: | |
1. Download and install a compatible version of [Python](https://www.python.org/downloads/). | |
(Make sure the Python.exe file is added to the PATH variable. This is one of the | |
installation options.) | |
2. Find the release of [Python for Windows Extensions](http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/) |
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 sys | |
import argparse | |
import os | |
import fnmatch | |
import win32com | |
from Tkinter import * | |
from tkFileDialog import * | |
from win32com.client import Dispatch |