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
| """ | |
| Converts the specified CSV file to XLS using xlwt. | |
| Copyright 2012 Kevin Richardson | |
| Permission is hereby granted, free of charge, to any person obtaining | |
| a copy of this software and associated documentation files (the | |
| "Software"), to deal in the Software without restriction, including | |
| without limitation the rights to use, copy, modify, merge, publish, |
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
| """ | |
| Output the intersection of elements contained within the first column of the | |
| passed-in CSV files. | |
| Copyright 2012 Kevin Richardson | |
| Permission is hereby granted, free of charge, to any person obtaining | |
| a copy of this software and associated documentation files (the | |
| "Software"), to deal in the Software without restriction, including | |
| without limitation the rights to use, copy, modify, merge, publish, |
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
| # FROM: http://en.wikipedia.org/wiki/Base_36#Python_implementation | |
| def base36encode(number): | |
| """Converts an integer into a base36 string.""" | |
| ALPHABET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
| if not isinstance(number, (int, long)): | |
| raise TypeError('This function must be called on an integer.') | |
| base36 = '' |
NewerOlder