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
| ;+ | |
| ; NAME: | |
| ; NLOADCT | |
| ; | |
| ; PURPOSE: | |
| ; Load predefined color tables. | |
| ; | |
| ; CATEGORY: | |
| ; Image display. | |
| ; |
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
| # Compiled files | |
| ################ | |
| *.o | |
| *.so | |
| *.mod | |
| # Emacs temporary files | |
| ####################### | |
| *~ | |
| \#*\# |
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
| """Provides method generate(prefix,length), which for a given prefix and | |
| total length will return a valid credit card number. generate returns | |
| None for invalid inputs. | |
| Credit card numbers have the following form: PPPPPP NNNNNNNNN C | |
| Where P is a prefix that identifies the issuing authority, N is an | |
| account number and C is a checksum digit, calculated with Luhn's | |
| algorithm. |
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
| """Provides methods check_sudoku and solve_sudoku | |
| Expects input of a list of 9 lists, each of length 9, representing | |
| a Sudoku board. Unfilled numbers may be represented with a zero. For | |
| example: | |
| valid = [[5,3,4,6,7,8,9,1,2], | |
| [6,7,2,1,9,5,3,4,8], | |
| [1,9,8,3,4,2,5,6,7], | |
| [8,5,9,7,6,1,4,2,3], | |
| [4,2,6,8,5,3,7,9,1], | |
| [7,1,3,9,2,4,8,5,6], |
NewerOlder