Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"-":"-....-",
"/":"-..-.",
"@":".--.-.",
"=":"-...-",
" ":"/"
}
decode_morse = dict((morse_char, char) for (char, morse_char) in encode_morse.items())
cowList = {
"cow":cow.Cowacter(),
"hellokitty":cow.HelloKitty(),
"bunny":cow.Bunny(),
"cheese":cow.Cheese(),
"milk":cow.Milk(),
"bong":cow.BongCow(),
"eyes":cow.Eyes(),
"legitvore":cow.HeadInCow(),
"666":cow.Satanic(),
"frogs":cow.BudFrogs(),
"daemon":cow.Daemon(),
"moofasa":cow.Moofasa(),
"mutilated":cow.Mutilated(),
"skeleton":cow.Skeleton(),
"small":cow.Small(),
"excusemewhatthefuck":cow.Sodomized(),
"garfield":cow.Stimpy(),
"tux":cow.Tux(),
"vader":cow.Vader()
}
def write_file(filename, contents):
def __init__(self, **kwargs):
kwargs['body'] = (
" {thoughts}\n"
" {thoughts}\n"
" ^__^\n"
" _______/({eyes})\n"
"/\\/( /(__)\n"
" | W----|| |~|\n"
" || || |~| ~~\n"
" |~| ~\n"
" |_| o\n"
" |#|/\n"
" _+#+_\n")
super(BongCow, self).__init__(**kwargs)
" {thoughts}\n"
" {thoughts}\n"
" ^__^\n"
" _______/({eyes})\n"
"/\\/( /(__)\n"
" | W----|| |~|\n"
" || || |~| ~~\n"
" |~| ~\n"
" |_| o\n"
" |#|/\n"
" _+#+_\n")
super(BongCow, self).__init__(**kwargs)
COWACTERS['bongcow'] = BongCow
class BudFrogs(Cowacter):
def __init__(self, **kwargs):
kwargs['body'] = (
" {thoughts}\n"
" {thoughts}\n"
" oO)-. .-(Oo\n"
" /__ _\\ /_ __\\\n"
" \\ \\( | ()~() | )/ /\n"
" \\__|\\ | (-___-) | /|__/\n"
" ' '--' ==`-'== '--' '")
super(BudFrogs, self).__init__(**kwargs)