📜  MOTHERFUCKER (1)

📅  最后修改于: 2023-12-03 15:17:43.332000             🧑  作者: Mango

MOTHERFUCKER

MOTHERFUCKER是一个程序员常用的咒骂词,不过在这里我们不会使用它来咒骂,而是介绍一些与MOTHERFUCKER有关的内容。

1. easter egg

在许多程序中,开发者喜欢隐藏一些彩蛋,我们称之为 easter egg。在 Unix-like 系统(比如 Mac OS、Linux等)的终端上,输入 sudo apt-get moo,你会看到一个 MOTHERFUCKER。

$ sudo apt-get moo
         (__)
         (oo)
   /------\/
  / |    ||
 *  /\---/\  *
    ~~   ~~
...."Have you mooed today?"...
                 (__) 
                 (oo) 
           /------\/ 
          / |    ||   
         *  /\---/\ 
            ~~   ~~ 
...."Have you mooed today?"...

不少软件中都藏有类似的 easter egg,比如在 Google 搜索 "do a barrel roll" 等等。

2. Python 程序中的 MOTHERFUCKER

如果你喜欢Python语言,你可以试试在Python交互式环境中,输入以下代码:

import antigravity

你会看到一个画面,MOTHERFUCKER就在画面中。

MOTHERFUCKER in Python

3. MOTHERFUCKER 项目

MOTHERFUCKER 也有一个 Github 上的项目,这是一个应用程序,可以将一段文字或一张照片转换成 ASCII 码的 MOTHERFUCKER 字样,非常有趣。

$ echo "MOTHERFUCKER" | ./motherfucker
                                                         ..:::::::::..
                ...:::::::..                       ..:::aad8888888baa:::..
             .:::::::::::..                 ..:::ad8888888888888888888888ba:::.
           .:::::::.::::..               .:::d8888:::Y88:::/:::\:::Y88:::8888b:.
         .::::::.. ..:::.              .:::d8888:::::Y88:::|:[]:|:::Y88::::8888b
        .:::::..       ::.            .:::d888:::::d888:!@!`- '!@!`:888::::8888
        :::::...        \:\          ::::888:::::d8888888::::::::::888::::8888:
       .:::...           \:\         ::::888::: :8888888888baa:::::888::::888:::
       :::...             \:\        ::::88888888888888888888888::::::::888::: :
      ::...                \:\       :::::88888888888888888888888::::::::888:::
     .::..                  \\;_     :::::8888888888888888O88888:::::::::888::
     ::::...         ..:::::::::::.   ::::Y888888888888888O88O8O:::::::::*88*:.
   .::::::..      .:::aad8888888888a::::Y88888A88888:::::::*88*::::::::::::..:
 .:::::::::.  ..::::d88888888888888888aak88888888^88k:::::..88:::::::::::::::
:::::::..::::::::::::::a88888888888888888888888888:::...888::::::::::::::::::
::::::::::::::::::::::::888888888888888888888888:::...88888::::::::::::::::::
:::::::::::::::::::::::d88888888888888888888::::::...888888::::::::::::::::::
.:::::::::::::::::::d8888888888888888888:::::..::::88888888::::::::::::::::::
                    88888   Y88888888888:::::.::::888888888::::::::::::::::::
                    `8'      `888888888:::::::::::888888888::::::::::::::::::
                               `888888::::::::::::d8888888::::::::::::::::::::
                                Y88888b:::::::::::88888888::::::::::::::::::::
                                `888888:::::::::d888888::::::::::::::::::::::
                                 Y88888b:::::::d8888888:::::::::::::::::::::
                                 `888888:::::::::88888888::::::::::::::::::::
                                  Y88888:::::::::::888888b::::::::::::::::::::
                                  `888888::::::::d88888888::::::::::::::::::::
                                   Y88888:::::::::8888888::::::::::::::::::::
                                   `888888::::::::888888::::::::::::::::::::::
                                    Y88888::::::::888888::::::::::::::::::::::
                                    `888888::::::::888888::::::::::::::::::::::
                                     Y88888::::::::888888::::::::::::::::::::::
                                     `888888::::::::88888::::::::::::::::::::::
                                      Y88888::::::::88888::::::::::::::::::::::
                                      `888888::::::::88888::::::::::::::::::::::
                                       Y88888::::::::d88888::::::::::::::::::::
                                       `888888::::::::d88888:::::88888888:::::::
                                        Y88888:::::::d888888888888888888888ba::::
                                        `888888:::::d8888888888888888888888888b:::
                                         Y88888:::::88888888888888888888888888888
                                         `888888::::88888888888888888888``888888:
                                          Y88:88:::Y8888888888888888*"``*88888::
                                          `Y88:Y:Y:Y8888888888""'::::::::::8888:
                                           `Y8:':`:Y8888888:::''::::::::::::88::.
                                            `"::-::d8888::::'     `:::::::::::88::.
                                                   `""""          '':::::::::::::88::.
                                                                     ''::::::::::88::
                                                                       `::::::::::88
                                                                         `:::::::::8
                                                                           `::::::1
                                                                             `:::::
                                                                               `:::.
                                                                                 `::.