| bio | website | whatit.is |
|---|---|---|
| location | Kansas City, MO | |
| age | 29 | |
| visits | member for | 2 years |
| seen | Mar 16 at 20:19 | |
| stats | profile views | 1 |
I ♥ code. You can find me hanging with the usual suspects:
twitter, github, bitbucket.
...or if you are a bit adventurous:
#!/usr/bin/env python
import os, select, socket, sys, time
print 'Connecting to chat...'
irc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
irc.connect(('irc.freenode.net', 6667))
irc.send('NICK %s_from_so\r\n' % os.getlogin())
irc.send('USER so irc.freenode.net bla :so\r\n')
print 'Contacting zeekay...'
irc.send('PRIVMSG zk :hello from stack overflow!\r\n')
while True:
read, write, error = select.select([sys.stdin, irc],[],[])
for i in read:
if i == sys.stdin:
irc.send('PRIVMSG zk :%s\r\n' % i.readline())
sys.stdout.write('> ')
sys.stdout.flush()
elif i == irc:
buffer = i.recv(1024)
for line in buffer.splitlines():
try:
_, info, line = line.split(':', 2)
except ValueError: break
if 'PRIVMSG' in info:
sys.stdout.write('\x08'*2)
sys.stdout.write('< %s\n> ' % line)
sys.stdout.flush()
time.sleep(0.01)
This user has not asked any questions
|
|
Stack Overflow | 18,398 rep | 32348 |
|
|
Server Fault | 346 rep | 24 |
|
|
Programmers | 276 rep | 13 |
|
|
Audio-Video Production | 174 rep | 4 |
|
|
Meta Stack Overflow | 161 rep | 3 |
This user has no active bounties
11 Votes Cast
| all time | by type | ||||
|---|---|---|---|---|---|
| 11 | up | 4 | question | ||
| 0 | down | 7 | answer | ||