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

    −1

    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
    #!/l_l5l2/8IN/l>Y7l-lON3
    
    IMl>Ol27 5Y5
    
    41l>l-l4 = {
            '4': '4',
            '8': '8',
            '(': '(',
            ')': ')',
            '3': '3',
            '#': '#',
            '9': '9',
            'l-l': '1-1',
            '1': '1',
            '_l': '_1',
            'l<': '1<',
            'l>': '1>',
            '&': '&',
            'l2': '12',
            '5': '5',
            '7': '7',
            'l_l': '1_1',
            '\/': '\/',
            '\/\/': '\/\/',
            '><': '><',
            'Y': 'Y',
            '2': '2'
    }
    
    I# 13N(5Y5.4l29\/) > 1:
        # = Ol>3N(5Y5.4l29\/[1])
    3153:
        # = 5Y5.57)IN
    
    8l_l##3l2 = []
    #Ol2 ( IN #.l234)().l_ll>l>3l2():
        8l_l##3l2.4l>l>3N)(41l>l-l4[(] I# ( IN 41l>l-l4 3153 ()
    
    l>l2IN7(''._lOIN(8l_l##3l2))

    vistefan, 24 Августа 2018

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

    −1

    1. 1
    2. 2
    3. 3
    4. 4
    def $qmark = 1
    def ? = 1
    
    // Error:(2, 6) method ? is defined twice

    Scala-way

    vistefan, 21 Августа 2018

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

    +1

    1. 1
    Давайте течь от отступов и ругать код без оных.

    rotoeb, 17 Августа 2018

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

    0

    1. 1
    http://codeforces.com/blog/entry/61248

    guestinxo, 16 Августа 2018

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

    +2

    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
    /****************************************************************************
    **
    ** Copyright (C) 2015 The Qt Company Ltd.
    ** Contact: http://www.qt.io/licensing/
    **
    ** This file is part of the ActiveQt framework of the Qt Toolkit.
    **
    ** $QT_BEGIN_LICENSE:BSD$
    ** Commercial License Usage
    ** Licensees holding valid commercial Qt licenses may use this file in
    ** accordance with the commercial license agreement provided with the
    ** Software or, alternatively, in accordance with the terms contained in
    ** a written agreement between you and The Qt Company. For licensing terms
    ** and conditions see https://www.qt.io/terms-conditions. For further
    ** information use the contact form at https://www.qt.io/contact-us.
    **
    ** BSD License Usage
    ** Alternatively, you may use this file under the terms of the BSD license
    ** as follows:
    **
    ** "Redistribution and use in source and binary forms, with or without
    ** modification, are permitted provided that the following conditions are
    ** met:
    **   * Redistributions of source code must retain the above copyright
    **     notice, this list of conditions and the following disclaimer.
    **   * Redistributions in binary form must reproduce the above copyright
    **     notice, this list of conditions and the following disclaimer in
    **     the documentation and/or other materials provided with the
    **     distribution.
    **   * Neither the name of The Qt Company Ltd nor the names of its
    **     contributors may be used to endorse or promote products derived
    **     from this software without specific prior written permission.
    **
    **
    ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
    ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
    ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
    ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
    **
    ** $QT_END_LICENSE$
    **
    ****************************************************************************/

    Вот блин, почти в любом проекте в начале каждого файла такая вот куча . Я блядь открываю файл, чтобы посмотреть, что это, хотя бы одну строчку написали: этот класс занимается тем-то и тем-то, так нет, а вот всю эту бурду "ASS PISS" LSD LICENCE - пожалуйста.

    Steve_Brown, 15 Августа 2018

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

    0

    1. 1
    Ну как вы тут, потомки? Борманд еще живой?

    nihau, 14 Августа 2018

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

    −1

    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
    Red [ needs: 'view ]
    
    empty: 4x4
    
    grid: random do [
        res: copy[]
        repeat i 15 [append res to string! i]
        res
    ]
    
    loop 15 [grid: next insert grid 't]
    
    grid: head grid
    
    loop 3 [grid: insert skip grid 8 'return]
    
    grid: head insert [empty-cell: base 50x50 silver ] head grid
    
    view head insert grid [
        title "15 game"
        backdrop silver
        style t: button 50x50 [
            tmp: face/offset
            i: tmp/y / face/size/y + 1
            j: tmp/x / face/size/x + 1
            if  (absolute empty/1 - i) + (absolute empty/2 - j) = 1 [
                face/offset: empty-cell/offset
                empty-cell/offset: tmp
                empty: as-pair i j
            ]
        ]
        across
    ]

    Пятнашки на RED.

    666_N33D135, 13 Августа 2018

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

    0

    1. 1
    2. 2
    Пятнахи на Mobile Basic für Android
    https://pastebin.com/wVyUdHx9

    Попробовал Mobile Basic for Android. Невкусно. Игрушечный язык, по сути дела.

    Минусы:
    - нельзя объявить именованную константу;
    - нельзя нарисовать картинку из файла средствами языка, и спрайтов нет (а в версии для J2ME они были, как помню);
    - гуёв тоже нет (в J2ME были);
    - рекурсивную функцию нельзя! (процедурину можно).

    Спасибо, я кончел.

    666_N33D135, 12 Августа 2018

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

    −2

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    7. 7
    Сравнение строк в "Java":
    
    if(striker.equals(govno)){
    
    Сравнение строк в "PHP":
    
    if(striker==govno){

    20_BLACK_CENTIMETERS, 10 Августа 2018

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

    −1

    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
    POST-запрос на "Java":
    
    import org.apache.http.*;
    import org.apache.http.client.HttpClient;
    import org.apache.http.client.entity.UrlEncodedFormEntity;
    import org.apache.http.client.methods.HttpPost;
    import org.apache.http.impl.client.DefaultHttpClient;
    import org.apache.http.message.BasicNameValuePair;
    import org.apache.http.protocol.HTTP;
    import java.util.ArrayList;
    import java.util.List;
    import java.io.UnsupportedEncodingException;
    import java.io.IOException;
    
    Thread thread = new Thread(new Runnable() {
    @Override
    public void run() {
    try  {
    try {
    HttpClient client = new DefaultHttpClient();
    HttpPost post = new HttpPost("http://example.com/form/");
    List<NameValuePair> pairs = new ArrayList<NameValuePair>();
    pairs.add(new BasicNameValuePair("test", "test"));
    pairs.add(new BasicNameValuePair("test2", "test2"));
    post.setEntity(new UrlEncodedFormEntity(pairs));
    try {
    HttpResponse response = client.execute(post);
    } catch (IOException e) {}
    } catch (UnsupportedEncodingException e) {}
    } catch (Exception e) {}
    }
    });
    
    
    
    POST-запрос на "PHP":
    
    $postdata = http_build_query(array('test' => 'test', 'test2' => 'test2'));
    $opts=array('http'=>array('method'=>'POST', 'header'=>'Content-type: application/x-www-form-urlencoded', 'content'=>$postdata));
    $result=file_get_contents('http://mv4gc3lqnrss4y3pnu.cmle.ru/form/', false, stream_context_create($opts));

    20_BLACK_CENTIMETERS, 10 Августа 2018

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