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:
/* | |
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 () { |
""" | |
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) |
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') |
""" | |
Fetch GitHub's MIT license template, populating this year and your name. | |
""" | |
import getpass | |
import pwd | |
from datetime import date | |
import requests |
I hereby claim:
To claim this, I am signing this object:
aes128 | |
aes256 | |
all | |
allowoverwrite | |
analyse | |
analyze | |
and | |
any | |
array | |
as |
#!/usr/bin/env python3 | |
""" | |
A style-izer / PascalCase-r / opinionated capitalizer for the docs site. | |
Capitalize the names of companies, services, etc as used on various generated | |
list pages on the Astronomer docs site <https://docs.astronomer.io/>, such as | |
Sources, Destinations, Transforms, Clickstream Collectors, and Clickstream | |
Connectors. |
""" | |
Generate ordinal days for a given year. | |
January 1st, January 2nd, January 3rd ... December 31st. | |
""" | |
import calendar | |
import datetime | |
def suffix(day): |