1. Куча / Говнокод #24715

    −3

    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
    66. 66
    67. 67
    68. 68
    69. 69
    70. 70
    71. 71
    72. 72
    73. 73
    74. 74
    75. 75
    76. 76
    77. 77
    Dies irae, dies illa
    solvet saeclum in favilla
    teste David cum Sibylla
    
    Quantus tremor est futurus
    quando judex est venturus
    cuncta stricte discussurus
    
    Tuba mirum spargens sonum
    Per sepulcra regionum,
    Coget omnes ante thronum.
    
    Mors stupebit et natura
    Cum resurget creatura
    judicanti responsura
    
    Liber scriptus proferetur
    in quo totum continetur
    unde mundus judicetur
    
    Judex ergo cum sedebit
    quidquid latet apparebit
    nil inultum remanebit
    
    Quid sum miser tunc dicturus
    quem patronum rogaturus
    cum vix justus sit securus?
    
    Rex tremendae majestatis,
    qui salvandos salvas gratis,
    salva me, fons pietatis.
    
    Recordare, Jesu pie,
    quod sum causa tuae viae:
    ne me perdas illa die.
    
    Quaerens me sedisti lassus;
    redemisti crucem passus.
    Tantus labor non sit cassus.
    
    Juste Judex ultionis
    donum fac remissionis
    ante diem rationis.
    
    Ingemisco tanquam reus:
    culpa rubet vultus meus.
    supplicanti parce, Deus.
    
    Qui Mariam absolvisti
    et latronem exaudisti,
    mihi quoque spem dedisti.
    
    Preces meae non sunt dignae,
    sed tu bonus fac benigne,
    ne perenni cremer igne.
    
    Inter oves locum praesta
    et ab haedis me sequestra,
    statuens in parte dextra.
    
    Confutatis maledictis
    flammis acribus addictis,
    voca me cum benedictis.
    
    Oro supplex et acclinis
    cor contritum quasi cinis,
    gere curam mei finis.
    
    Lacrimosa dies illa
    qua resurget ex favilla
    judicandus homo reus.
    
    huic ergo parce, Deus.
    Pie Jesu Domine,
    dona eis requiem.
    
    Amen.

    yet_another_one_shit, 666_N33D135

    Милосердный Господи Админе,
    Даруй им покой!

    Админь.

    ASMOZDOT, 03 Сентября 2018

    Комментарии (16)
  2. Python / Говнокод #24709

    −2

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de" dir="ltr">
    	<head>
    		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    		<meta name="keywords" content="Kabel Deutschland, digitale Belegung, Frequenzen, Kanäle, Sender" />

    Вся страница тут https://helpdesk.kdgforum.de/sendb/belegung.html
    Ебучий lxml при попытке парсить документ в неправильной кодировке (Невалидный utf8, в meta name="keywords" содержимое в однобайтовой кодировке. Как такое получили - другой вопрос) тихо сваливается в какую-то однобайтовую кодировку. Браузер всё показывает нормально. Несмотря на xhtml, который вроде должен заставлять строго парсить.

    syoma, 01 Сентября 2018

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

    −5

    1. 1
    Перепись долбоёбов.

    Отписываемся в комментах.

    Faika_Bormanda, 01 Сентября 2018

    Комментарии (27)
  4. Куча / Говнокод #24707

    −4

    1. 1
    2. 2
    3. 3
    Как называется физическая сеть, разбитая на подсети?
    
    (man dhcpd.conf)

    OlegUP, 01 Сентября 2018

    Комментарии (3)
  5. Python / Говнокод #24706

    −2

    1. 1
    if type(colType) == type(0): # it's a length

    Библиотека csv, встроенная в питон.

    syoma, 01 Сентября 2018

    Комментарии (3)
  6. C++ / Говнокод #24705

    −6

    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
    class Foo {
    // ...
    private:
        std::vector<int>     v1_;
        std::vector<int>     v2_;
        
        void bar( const std::vector<int>& v ); 
    
    public:
        void doAction( int choice ) {
            if ( choice == 1 ) 
                bar( v1_ );
            else
                bar( v2_ );
        }
    };

    Почему передавать поля класса в свои же методы по ссылке\указателю -- это говнокод?
    Как этого избегать, чтобы получилось универсальней?

    OlegUP, 01 Сентября 2018

    Комментарии (5)
  7. Куча / Говнокод #24703

    −2

    1. 1
    2. 2
    Заебали, пофиксите уже
    Csrf verification error

    Faika_Bormanda, 01 Сентября 2018

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

    −3

    1. 1
    24700-гет

    shite, 31 Августа 2018

    Комментарии (6)
  9. Куча / Говнокод #24699

    −3

    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
    Вот прога на C#:
    using System;
    namespace SomeNamespace
    {
        class SomeProgram
        {
            public static void Main(string[] args)
            {
                ulong input = ulong.Parse(Console.ReadLine());
                int counter = 0;
                Console.Write(input + " ");
                while(input != 3)
                {
                    switch(input % 3) 
                    {
                        case 0:
                        input /= 3;
                        Console.Write("/ 3 = " + input + " ");
                        counter++;
                        break;
                        case 1:
                        input--;
                        Console.Write("- 1 = " + input + " ");
                        counter++;
                        break;
                        case 2:
                        input++;
                        Console.Write("+ 1 = " + input + " ");
                        counter++;
                        break;
                    }
                }
                Console.WriteLine("\n3 reached. Number of moves: " + counter);
            }
        }
    }
    А вот на питонии:
    inpt = int(input())
    counter = 0
    print(str(inpt),end=' ')
    while not (inpt==3):
        if not(inpt%3==0):
            if inpt % 3 == 1:
                inpt -= 1
                print("- 1 = "+str(inpt),end=' ')
                counter += 1
            else:
                inpt += 1
                print("+ 1 = "+str(inpt),end=' ')
                counter += 1
        else:
            inpt //= 3
            print("/ 3 = "+str(inpt),end=' ')
            counter += 1
    else:
        print("\n3 reached. Number of moves: "+str(counter),end='',flush=True)

    И вот теперь скажите что-то, почему C# лучше питона.

    shite, 31 Августа 2018

    Комментарии (46)
  10. Assembler / Говнокод #24698

    −3

    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
    format PE GUI at 0x10000
    
    include 'win32a.inc'
    
    invoke  MessageBoxA, 0, message, caption, MB_ICONQUESTION + MB_OK
    invoke ExitProcess, 0
    
    message db "Just test.", 0
    caption db "Test.", 0
    
    data import
        library kernel32, 'KERNEL32.DLL', user32, 'USER32.DLL'
    
        import kernel32, ExitProcess, 'ExitProcess'
    
        import user32, MessageBoxA, 'MessageBoxA'
    end data

    Не пойму, чочему уменьшив базу на 1 программа перестаёт роботать, но собирается нормально. 0x10000 -- это самое маленькое значение с которым она роботать. С 0x0 какая-то ашипка на счет длл лезит.

    И ксатати, лоли дебагер почему-то не могет зогружать такие програмым.

    yet_another_one_shit, 31 Августа 2018

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