1. JavaScript / Говнокод #25650

    −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
    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
    78. 78
    79. 79
    80. 80
    81. 81
    82. 82
    83. 83
    84. 84
    85. 85
    86. 86
    87. 87
    88. 88
    89. 89
    90. 90
    91. 91
    92. 92
    93. 93
    94. 94
    95. 95
    <template>
      <div class="side-effects">
        <div class="side-effects__text" v-html="text"></div>
      </div>
    </template>
    
    <script>
        export default {
          name: 'SideEffects',
          data () {
            return {
              text: '<strong>JORNAY PM can cause serious side effects, including: </strong>' +
            '<ul>' +
            '<li>' +
            '<strong>Abuse and dependence.</strong> JORNAY PM contains methylphenidate. JORNAY PM, other methylphenidate-containing products, and\n' +
            'amphetamines have a high chance for abuse and can cause physical and psychological dependence. Your healthcare provider should check\n' +
            'you or your child for signs of abuse and dependence before and during treatment with JORNAY PM.' +
            '<ul>' +
            '<li>Tell your healthcare provider if you or your child has ever abused or been dependent on alcohol, prescription medicines, or street\n' +
            'drugs. </li>' +
            '<li> Your healthcare provider can tell you more about the differences between physical and psychological dependence and drug addiction. </li>' +
            '</ul>' +
            '</li>' +
            '<li>' +
            '<p class="mb-0"><strong>Heart-related problems, including:</strong></p>' +
            '<ul>' +
            '<li>sudden death, stroke, and heart attack in adults</li>' +
            '<li>sudden death in children who have heart problems or heart defects</li>' +
            '<li> increased blood pressure and heart rate </li>' +
            '</ul>' +
            '</li>' +
            '</ul>' +
            'Your healthcare provider should check you or your child carefully for heart problems before starting JORNAY PM. Tell your healthcare provider\n' +
            'if you or your child has any heart problems, heart defects, or high blood pressure.' +
            ' <p>Your healthcare provider should check your or your child’s blood pressure and heart rate regularly during treatment with JORNAY PM. </p>' +
            '<p><strong>Call your healthcare provider right away or go to the nearest hospital emergency room right away if you or your child has any signs of\n' +
            'heart problems such as chest pain, shortness of breath, or fainting during treatment with JORNAY PM. </strong></p>' +
            '<ul>' +
            '<li>' +
            '<strong>Mental (psychiatric) problems, including:</strong>' +
            '<ul>' +
            '<li>new or worse behavior and thought problems</li>' +
            '<li>new or worse bipolar illness</li>' +
            '<li>new psychotic symptoms (such as hearing voices, or seeing or believing things that are not real) or new manic symptoms </li>' +
            '</ul>' +
            '</li>' +
            '</ul>' +
            'Tell your healthcare provider about any mental problems you or your child has, or about a family history of suicide, bipolar illness, or\n' +
            'depression. ' +
            '<p><strong>Call your healthcare provider right away if you or your child have any new or worsening mental symptoms or problems during treatment\n' +
            'with JORNAY PM, especially hearing voices, seeing or believing things that are not real, or new manic symptoms</strong></p>' +
            '<strong>JORNAY PM can cause other serious side effects, including:</strong>' +
            '<ul>' +
            '<li>See <strong>“What is the most important information I should know about JORNAY PM?” </strong></li>' +
            '<li><strong>Painful and prolonged erections (priapism). </strong>Priapism has happened in males who take products that contain methylphenidate. If you or\n' +
            'your child develops priapism, get medical help right away</li>' +
            '<li>' +
            '<strong>Circulation problems in fingers and toes (peripheral vasculopathy, including Raynaud’s phenomenon). Signs and symptoms may\n' +
            'include:</strong>' +
            '<ul>' +
            '<li>fingers or toes may feel numb, cool, or painful</li>' +
            '<li> fingers or toes may change color from pale, to blue, to red </li>' +
            '</ul>' +
            '</li>' +
            '</ul>' +
            'Tell your healthcare provider if you or your child has numbness, pain, skin color change, or sensitivity to temperature in the fingers or toes. ' +
            '<strong>Call your healthcare provider right away if you or your child has any signs of unexplained wounds appearing on fingers or toes during\n' +
            'treatment with JORNAY PM.</strong>' +
            '<ul>' +
            '<li>' +
            '<strong>Slowing of growth (height and weight) in children</strong> Children should have their height and weight checked often during treatment with\n' +
            'JORNAY PM. JORNAY PM treatment may be stopped if your child is not gaining weight or height. ' +
            '</li>' +
            '</ul>' +
            '<strong>The most common side effects of methylphenidate products in children, adolescents, and adults with ADHD include:</strong>' +
            '<ul>' +
            '<li>decreased appetite</li>' +
            '<li>stomach pain</li>' +
            '<li>irritability</li>' +
            '<li>trouble sleeping</li>' +
            '<li>weight loss</li>' +
            '<li>mood swings (affect lability)</li>' +
            '<li>nausea</li>' +
            '<li>anxiety</li>' +
            '<li>increased heart rate</li>' +
            '<li>vomiting</li>' +
            '<li>dizziness</li>' +
            '<li>increased blood pressure</li>' +
            '<li>indigestion</li>' +
            '</ul>' +
            '<strorg>The most common side effects of JORNAY PM in children age 6 to 12 with ADHD include: </strorg>';
            }
          }
        }
    </script>

    Так вот зачем нужна data и v-html (VueJS)

    websbkinfo, 30 Мая 2019

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

    0

    1. 1
    2. 2
    В "Notepad" обнаружена уязвимость.
    https://habr.com/ru/news/t/454118/

    OCETuHCKuu_nemyx, 30 Мая 2019

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

    −4

    1. 1
    2. 2
    >>> -14 // 57
    -1

    Отсосу питоноблядей!
    https://ideone.com/kBYoU9

    OCETuHCKuu_nemyx, 28 Мая 2019

    Комментарии (105)
  4. Python / Говнокод #25645

    −1

    1. 1
    2. 2
    In [9]: 0.14*100
    Out[9]: 14.000000000000002

    Питонобляди соснули!

    syoma, 27 Мая 2019

    Комментарии (132)
  5. PHP / Говнокод #25644

    −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
    //ищем  barcode  из ws_products                                         
    if($ar_clean['product_name']){
    								$product = $ar_clean['product_name'];
    								$getServices = mysqli_query($db,"SELECT barcode FROM ws_products WHERE product_name LIKE '%$product%'");
    								$barcode = $getServices['barcode'];
    								var_dump($getServices);
    							}	
    						// Загружаем данные из в форма в перемену 
    								$username = $ar_clean['username'];
    								$product_name = $ar_clean['product_name'];
    								$date1 = $ar_clean['date1'];	
    								$date2 = $ar_clean['date2'];		
    									
    									$WHERE = ' WHERE ';	
    										
    									// Проверяем если поля заполнены		
    										if($username!=''){
    											$WHERE = $WHERE. ' AND `username` =' .$username;
    										}
    										
    										if($product_name!=''){
    											$WHERE = $WHERE. ' ` AND product_name` = ' .$product_name;
    										}
    										
    										if($date1!=''){
    											$WHERE = $WHERE.' `AND date` BETWEEN '.$date1. 'AND' .$date2 ;
    										}
    												 
    									$getServices = mysqli_query($db," SELECT * FROM `ws_purchase` '$WHERE'  ORDER BY date ASC ");
    						
    							
    										 while($Service = mysqli_fetch_assoc($getServices))
    											 { //show($Service);
    												?>
    												//вызываем данные с бд
    												<tr class="delete">
    													<td><?=$Service['id_purchase'] ?></td>
    													<td><?=$Service['other_barcode'] ?></td>
    													<td><?=$Service['username'] ?></td>
    													<td><?=$Service['other_things'] ?></td>
    													<td><?=$Service['product_name'] ?></td>
    													<td><?=$Service['price'] ?></td>
    													<td><?=$Service['date'] ?></td>
    													
    					   							</tr>
    					   						<?
    										}			 
    								}

    Привет я делаю поиск но $WHERE не работает, '".$WHERE."' так тоже не работает. Что не так я делаю?

    arts, 27 Мая 2019

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

    −1

    1. 1
    2. 2
    3. 3
    http://korzinka.byethost9.com/?i=1
    
    Какой багор))) Качает всю базу и картинки... сайт весит более 350 МБ и ещё качает...

    unicorn, 25 Мая 2019

    Комментарии (22)
  7. Python / Говнокод #25639

    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
    def parse_cmd(cmd):
        output = []
        state = 0
        current_arg = ''
        prev_c = ''
        for c in cmd:
            if c == ' ':
                if state == 0:
                    if len(current_arg) > 0:
                        output += [current_arg]
                    current_arg = ''
                elif state == 1:
                    current_arg += c
            elif c == '"' and prev_c != '\\':
                if len(current_arg) > 0 or state == 1:
                    output += [current_arg]
                current_arg = ''
                state = int(not state)
            else:
                current_arg += c
            prev_c = c
        if len(current_arg) > 0:
            output += [current_arg]
        return output

    Какой FSM )))

    gost, 24 Мая 2019

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

    −106

    1. 1
    ­

    neTyxu BCẺ

    расиянцам приготовиться к параду суевернитетов

    OKOPO4KA_TpaMna, 23 Мая 2019

    Комментарии (63)
  9. PHP / Говнокод #25635

    +3

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    function mysql_real_escape_string_cloud($string)
    {
        return unserialize(
            file_get_contents("https://mysql-real-escape-string.xyz/php?string="
                . urlencode($string)));
    }

    Запущен сайт https://mysql-real-escape-string.xyz/, предоставляющий функцию «mysql_real_escape_string» в виде сервиса. Имеются три различных формата получения данных (/plain, /json и инновационный /php). Теперь обеспечить абсолютную безопасность базы данных функцией «mysql_real_escape_string» можно из любого языка, поддерживающего «HTTP-запросы»!

    gost, 23 Мая 2019

    Комментарии (314)
  10. C++ / Говнокод #25634

    +2

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    7. 7
    8. 8
    std::queue<char *> outQueue2;
    std::lock_guard<std::mutex> lock(mtx);
    mtx.lock();
    if (outQueue.size() > 0) {
    std::swap(outQueue2, outQueue);
    outQueue = {};
    }
    std::lock_guard<std::mutex> unlock(mtx);

    со слов автора:
    у меня 2 исходящие очереди
    в одну соседний поток ложит
    потом приходит тик
    врубает симафор
    копирует по-бырому очередь
    и чистит её
    дальше отпускает поток
    чтобы не ждать
    пока всё отправится
    и спокойно в соседнем потоке уже начинает BYtestream...
    и всё такое
    разьве не так делают в домах парижу?

    heh1137, 22 Мая 2019

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