1. Лучший говнокод

    В номинации:
    За время:
  2. Куча / Говнокод #29275

    0

    1. 1
    Бесконечный оффтоп имени Гологуба #11

    #1: https://govnokod.ru/28992 https://govnokod.xyz/_28992
    #2: https://govnokod.ru/29053 https://govnokod.xyz/_29053
    #3: https://govnokod.ru/29075 https://govnokod.xyz/_29075
    #4: https://govnokod.ru/29110 https://govnokod.xyz/_29110
    #5: https://govnokod.ru/29127 https://govnokod.xyz/_29127
    #6: https://govnokod.ru/29140 https://govnokod.xyz/_29140
    #7: https://govnokod.ru/29170 https://govnokod.xyz/_29170
    #8: https://govnokod.ru/29192 https://govnokod.xyz/_29192
    #9: https://govnokod.ru/29227 https://govnokod.xyz/_29227
    #10: https://govnokod.ru/29258 https://govnokod.xyz/_29258

    nepeKamHblu_nemyx, 09 Августа 2026

    Комментарии (110)
  3. Куча / Говнокод #29277

    0

    1. 1
    Пиздец-оффтоп #132

    #102: https://govnokod.ru/28978 https://govnokod.xyz/_28978
    #103: https://govnokod.ru/28982 https://govnokod.xyz/_28982
    #104: https://govnokod.ru/28989 https://govnokod.xyz/_28989
    #105: https://govnokod.ru/29052 https://govnokod.xyz/_29052
    #106: https://govnokod.ru/29069 https://govnokod.xyz/_29069
    #107: (vanished) https://govnokod.xyz/_29086
    #108: https://govnokod.ru/29102 https://govnokod.xyz/_29102
    #109: https://govnokod.ru/29126 https://govnokod.xyz/_29126
    #110: https://govnokod.ru/29136 https://govnokod.xyz/_29136
    #111: https://govnokod.ru/29142 https://govnokod.xyz/_29142
    #112: https://govnokod.ru/29155 https://govnokod.xyz/_29155
    #113: https://govnokod.ru/29160 https://govnokod.xyz/_29160
    #114: https://govnokod.ru/29165 https://govnokod.xyz/_29165
    #115: https://govnokod.ru/29173 https://govnokod.xyz/_29173
    #116: https://govnokod.ru/29174 https://govnokod.xyz/_29174
    #117: https://govnokod.ru/29182 https://govnokod.xyz/_29182
    #118: https://govnokod.ru/29191 https://govnokod.xyz/_29191
    #119: https://govnokod.ru/29196 https://govnokod.xyz/_29196
    #120: https://govnokod.ru/29205 https://govnokod.xyz/_29205
    #121: https://govnokod.ru/29216 https://govnokod.xyz/_29216
    #122: https://govnokod.ru/29219 https://govnokod.xyz/_29219
    #123: https://govnokod.ru/29232 https://govnokod.xyz/_29232
    #124: https://govnokod.ru/29237 https://govnokod.xyz/_29237
    #125: https://govnokod.ru/29239 https://govnokod.xyz/_29239
    #126: https://govnokod.ru/29244 https://govnokod.xyz/_29244
    #127: https://govnokod.ru/29248 https://govnokod.xyz/_29248
    #128: https://govnokod.ru/29251 https://govnokod.xyz/_29251
    #129: https://govnokod.ru/29257 https://govnokod.xyz/_29257
    #130: https://govnokod.ru/29266 https://govnokod.xyz/_29266
    #131: https://govnokod.ru/29270 https://govnokod.xyz/_29270

    nepeKamHblu_nemyx, 20 Августа 2026

    Комментарии (19)
  4. bash / Говнокод #29276

    0

    1. 1
    adb shell pm list packages -e|cut -d: -f2|sort|perl -ple '$="adb shell appops set $ AUTO_REVOKE_PERMISSIONS_IF_UNUSED ignore"' | bash

    Реальный пример с Х-ра.

    nemyx, 15 Августа 2026

    Комментарии (19)
  5. Си / Говнокод #29278

    0

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    59. 59
    60. 60
    61. 61
    62. 62
    63. 63
    64. 64
    65. 65
    // Глобальные переменные
    
    uint8_t *map = NULL;
    int map_width = 0;
    int map_height = 0;
    
    bool load_level(const char *filename) {
        FILE *file = fopen(filename, "r");
        if (!file) {
            printf("Ошибка: Не удалось открыть файл %s\n", filename);
            return false;
        }
    
        char lines[512][512];
        int h = 0;
        char buffer[512];
    
        while (fgets(buffer, sizeof(buffer), file)) {
            buffer[strcspn(buffer, "\r\n")] = 0;
            if (buffer[0] == '\0' || buffer[0] == ';') continue;
    
            bool contains_map_char = false;
            for(int i=0; buffer[i]; i++) {
                if (strchr("#$@.*+ ", buffer[i])) {
                    contains_map_char = true;
                    break;
                }
            }
            
            if (contains_map_char) {
                strncpy(lines[h], buffer, 511);
                h++;
                if (h >= 512) break;
            }
            if (h > 0 && buffer[0] == '\0') break;
        }
        fclose(file);
    
        if (h == 0) return false;
    
        int w = 0;
        for (int i = 0; i < h; i++) {
            int len = strlen(lines[i]);
            if (len > w) w = len;
        }
    
        map = malloc(w * h * sizeof(uint8_t));
        map_width = w;
        map_height = h;
        memset(map, CELL_EMPTY, w * h);
    
        for (int y = 0; y < h; y++) {
            for (int x = 0; x < w; x++) {
                char c = (x < (int)strlen(lines[y])) ? lines[y][x] : ' ';
                if (c == '#') map[y * w + x] = CELL_WALL;
                else if (c == '$') map[y * w + x] = CELL_CUBE;
                else if (c == '.') map[y * w + x] = CELL_TARGET;
                else if (c == '*') map[y * w + x] = CELL_CUBE_ON_TARGET;
                else if (c == '@') { map[y * w + x] = CELL_EMPTY; playerX = x; playerY = y; }
                else if (c == '+') { map[y * w + x] = CELL_TARGET; playerX = x; playerY = y; }
                else map[y * w + x] = CELL_EMPTY;
            }
        }
        return true;
    }

    Загружалка уровня сокобана, сгенерированная нейронкой

    j123123, 24 Августа 2026

    Комментарии (9)