I hereby claim:
- I am tedmiston on github.
- I am tedmiston (https://keybase.io/tedmiston) on keybase.
- I have a public key ASDcS_0ErBLjbjPfvkCIwRXWIuHJaUCvFhvs1JZ7qltKzAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
""" | |
Fetch GitHub's MIT license template, populating this year and your name. | |
""" | |
import getpass | |
import pwd | |
from datetime import date | |
import requests |
import random | |
import urllib.request | |
WORD_LENGTH = 5 | |
MAX_GUESSES = 5 | |
WORD_LIST = 'https://raw.githubusercontent.com/tabatkins/wordle-list/main/words' | |
FORFEIT = 'forfeit' | |
response = urllib.request.urlopen(WORD_LIST) | |
content = response.read().decode('utf-8') |
""" | |
Simply display the contents of the webcam with optional mirroring using OpenCV | |
via the new Pythonic cv2 interface. Press <esc> to quit. | |
""" | |
import cv2 | |
def show_webcam(mirror=False): | |
cam = cv2.VideoCapture(0) |
/* | |
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp | |
server, but for some reason omit a client connecting to it. I added an | |
example at the bottom. | |
Save the following server in example.js: | |
*/ | |
var net = require('net'); |
function archive_all(testOnly) { | |
var someMessages, archiveButton; | |
if (testOnly === "undefined") { testOnly = false; } | |
someMessages = $("li._k- span.accessible_elem"); | |
console.log("Found", someMessages.length, "messages to archive in your inbox."); | |
archiveButton = null; | |
someMessages.each(function () { |