1. Куча / Говнокод #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)
  2. Куча / Говнокод #24623

    0

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

    nihau, 14 Августа 2018

    Комментарии (28)
  3. Куча / Говнокод #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)
  4. Куча / Говнокод #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)
  5. Куча / Говнокод #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)
  6. Куча / Говнокод #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)
  7. Куча / Говнокод #24603

    −1

    1. 1
    Давайте ругать "@" в "PHP".

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

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

    +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
    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
    #include <iostream>
    #include <string>
    #include <cstdlib>
    #include <ctime>
    #define next ;
    #define zero 0
    #define one 1
    #define two 2
    #define three 3
    #define four 4
    #define five 5
    #define six 6
    #define seven 7
    #define eight 8
    #define nine 9
    #define dot .
    #define begin {
    #define end }
    #define open (
    #define close )
    #define sqopen [
    #define sqclose ]
    #define less <=
    #define xless <
    #define greater >=
    #define xgreater >
    #define isnt !=
    #define isequal ==
    #define mustbe =
    #define write cout
    #define plus +
    #define minus -
    #define multi *
    #define divby /
    #define incr +=
    #define decr -=
    using namespace std next
    
    string pswdGen open int quantity close begin
        srand open time open 0 close close next
        char chars sqopen sqclose mustbe "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890@\#\$\%\&\-\+\!\/\_" next
        string password next
        for(int i = zero next i xless quantity next i++) begin
            password incr chars sqopen rand open close % open sizeof open chars close divby sizeof open *chars close close sqclose next
        end
        return password next
    end
    int main open close begin
        int charNo next
        write << "How many characters do you want in the password?" << endl next
        cin >> charNo next
        write << "Your new password is: " << pswdGen open charNo close << endl next
        return zero next
    end

    По сути это тот же крестовый паролегенератор, но из-за дефайнов и от того символов можно отнести в кучу. И да, "Переведи на "зрз"" в сторону. Перевел вам за щеку, проверяйте

    shite, 08 Августа 2018

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

    0

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    https://news.mail.ru/video/574647/
    
    В Камеруне произошел самый массовый побег из тюрьмы за последние годы.
    Около 160-ти заключенных сбежали из тюрьмы на северо-западе. Они прорвались
    через главные ворота, после чего подожгли здание. По предварительным данным,
    преступникам помогала вооруженная группа. Сейчас беглецов ищут.

    Мне страшно...

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

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

    0

    1. 1
    In 2011, a woman in Georgia pierced a fiber backbone line with a shovel and left the neighboring country of Armenia without Internet access for 12 hours (с) Wikipedia

    Давайте что-нить ругать

    roskomgovno, 07 Августа 2018

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