This file contains hidden or 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
#!/usr/bin/env ruby | |
# coding: utf-8 | |
# @todo Properly case the organization name. | |
# @todo Handle case where the organization has >1 contact but no email | |
# address on the first contact, e.g. CSSS DE CHICOUTIMI. | |
# @todo For organizations without any email address, HTML-ify their | |
# postal address and put it in the notes section. | |
# @todo Investigate why we get BAIEJAMES in some cases. | |
require 'csv' |
This file contains hidden or 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 socket | |
import re | |
PORT = 1075 | |
LINE_VALIDATOR = re.compile(r"(0|1)(0|1)(0|1)(0|1)(0|1)") | |
def main(): | |
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
s.bind(("0.0.0.0", PORT)) |