Skip to content

Instantly share code, notes, and snippets.

@mtearle
mtearle / keybase.md
Created July 31, 2020 11:11
Keybase
View keybase.md

Keybase proof

I hereby claim:

  • I am mtearle on github.
  • I am mtearle (https://keybase.io/mtearle) on keybase.
  • I have a public key ASCuWDzAeyXwId6nWwwq_fW8hRq_iqAgJgkcqDDccZNfhwo

To claim this, I am signing this object:

@mtearle
mtearle / EXAMPLE-socket.py
Created October 14, 2014 15:31
npyscreen EXAMPLE of a socket connection updating widgets
View EXAMPLE-socket.py
#!/usr/bin/env python
import npyscreen, curses
# Incorporates code
# from http://www.binarytides.com/python-socket-server-code-example/
# Socket server in python using select function
import socket, select
class MyTestApp(npyscreen.NPSAppManaged):
# socket code