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
#!/usr/bin/python | |
''' | |
Count number of palindromes that appear in a string | |
''' | |
from sys import argv | |
def count(drome): | |
total = 0 |
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
Attribute VB_Name = "Kai32" | |
'-=====================================================- | |
' -= +------------------------------------------------+ =- | |
' -= | |\ =- | |
' -= | |¯¯|\ |¯¯|\ |¯¯|\ |¯¯¯¯¯¯|\ |¯¯¯¯¯¯|\ |\\ =- | |
' -= | | |\/ /\| |__|\||__|| |\||___ |\| |\\| =- | |
' -= | | |/ /\/ |¯¯¯¯¯|\ \\\\| \\|¯ |\| /¯¯___/\| |\\| =- | |
' -= | | /\/ | |\||¯¯|\ |¯¯|| |\|| ¯¯¯|\ |\\| =- | |
' -= | | \/ | | |\|| |\||______|\||______|\| |\\| =- | |
' -= | | |\ \ | |\|| |\| \\\\\\\\| \\\\\\\\| |\\| =- |
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
#!/usr/bin/python | |
""" | |
Receives 2 command-line arguments: | |
* Number of low-order bits to match | |
* Length of time to run for (in seconds) | |
Executes for a given time, generating random SHA1 hashes, | |
and counting how many times the low-order bits match the "z". | |