This file contains 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 Foundation | |
class HamGridMaidenheadConversion { | |
private let upper = "ABCDEFGHIJKLMNOPQRSTUVWX" | |
private let lower = "abcdefghijklmnopqrstuvwx" | |
private func ord(_ value:UnicodeScalar) -> Int { | |
return Int(( value as UnicodeScalar).value) | |
} | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 requests | |
''' | |
Valid language: en, zh-Hant | |
''' | |
def address_check( address, language="en" ): | |
if language not in ['en', 'zh-Hant']: | |
raise ValueError('language is not specified correctly. Either in \'en\' or \'zh-Hant\'') | |
headers = { |
This file contains 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 requests | |
''' | |
Valid language: en, zh-Hant | |
''' | |
def address_check( address, language="en" ): | |
if language not in ['en', 'zh-Hant']: | |
raise ValueError('language is not specified correctly. Either in \'en\' or \'zh-Hant\'') | |
headers = { |
This file contains 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
# https://github.com/kenguish/python-hkpl | |
# Fleur Hong Kong flower shop http://fleur.hk/ | |
import sys, os, re, string | |
from urllib2 import HTTPError | |
import re | |
import mechanize | |
from BeautifulSoup import BeautifulSoup |