1. Лучший говнокод

    В номинации:
    За время:
  2. Куча / Говнокод #26450

    +2

    1. 1
    Какое объявление на answers.microsoft.com )))

    Protect Yourself From Tech Support Scams
    Tech support scams are an industry-wide issue where scammers trick you into paying for unnecessary technical support services. You can help protect yourself from scammers by verifying that the contact is a Microsoft Agent or Microsoft Employee and that the phone number is an official Microsoft global customer service number.

    kak, 25 Февраля 2020

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

    0

    1. 1
    Этот ебаный мир катицца в бездну.

    Блять, бог, нажми уже F9!

    AnalBoy, 07 Февраля 2020

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

    −2

    1. 1
    Каким же додиком оказался админ.

    Сайт прогнил до основания

    KAPABAH, 12 Января 2020

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

    +5

    1. 1
    Воцарилась над вами, проверьте.

    Jll-O6OBb, 26 Декабря 2019

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

    −1

    1. 1
    http://joxi.net/a2XoPdDTDwWGkm

    "Отличная реклама" ещё бы кодить научили

    phpBidlokoder2, 12 Декабря 2019

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

    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
    FILES=`find css js templates -type f -regex '.*.\(js\|css\|twig\)'`
    for f in $FILES; do
        str=`echo -n $f|rev`
        i=`expr index $str /`
        ret=`echo -n ${str:$i}|rev`
        echo $f|grep twig &>/dev/null
        r=$?
    echo $f :
        if [ "$r" -eq 0 ]; then
            minify --type html $f --output $FOLDER/$ret
        else
            minify $f --output $FOLDER/$ret
        fi
    done

    сука блядь глючит! костыли ебаные

    codershitter, 01 Декабря 2019

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

    0

    1. 1
    /(?<=это же )отсос\?/

    https://ideone.com/DbFj9D

    whois, 03 Ноября 2019

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

    −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
    /*redir.php*/
    <?php
     /* Принимаем данные из формы */
      $connect=mysqli_connect('localhost','login','password') or die(mysqli_error());
    mysqli_select_db('myDB') or die ("Не могу выбрать базу данных");
    if(isset($_POST['enter'])){/*если нажата кнопка, то заносим в бд данные*/
    	 if (empty($_POST['name']) or empty($_POST['phone'])) {
            echo '<script>alert("Заполните все поля формы");</script>';
    	 } else {
      $name = $_POST["name"];
      $phone = $_POST["phone"];
      $datetime= date("l dS of F Y h:i:s A");
    $mysqly=mysqli_query($connect,"INSERT INTO contacts VALUES ('','$name','$phone','$datetime','')") OR DIE (MYSQLI_ERROR());}}
      ?>
    <script type="text/javascript">
      document.location.replace("index.php");/*делаем редирект на главную страницу сайта*/
    </script>

    https://habr.com/ru/sandbox/127860/

    OCETuHCKuu_nemyx, 06 Октября 2019

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

    +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
    <?php
    namespace Illuminate\Notifications\Messages;
    use Illuminate\Bus\Queueable;
    class BroadcastMessage
    {
        use Queueable;
    
        /**
         * The data for the notification.
         *
         * @var array
         */
        public $data;
    
        /**
         * Create a new message instance.
         *
         * @param  array  $data
         * @return void
         */
        public function __construct(array $data)
        {
            $this->data = $data;
        }
    
        /**
         * Set the message data.
         *
         * @param  array  $data
         * @return $this
         */
        public function data($data)
        {
            $this->data = $data;
            return $this;
        }
    }

    (new BroadcastMessage($shit))->data($shit)->data; // this data is the same $shit!
    оч удобно
    https://github.com/illuminate/notifications/blob/master/Messages/BroadcastMessage.php

    pahhan, 18 Сентября 2019

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

    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
    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
    RZ(z=tail(w)); k=AN(z)<<bplg(AT(z)); // k=length of input cell in bytes
     // fill in the shape, offset, and item-count of the virtual block
     AN(a)=AN(z); AK(a)+=(n-1)*k; MCISH(AS(a),AS(z),r-1);  // make the virtual block look like the tail, except for the offset.  We start out pointing
       // to the last item; the pointer is unused in the first iteration, and we then back up to the second-last item, which is the first one we
       // process as a
    
    #define ZZPOPNEVER 1   // we mustn't TPOP after copying the result atoms, because they are reused.  This will leave the memory used for type-conversions unclaimed.
       // if we implement the annulment of tpop pointers, we should use that to hand-free results that have been converted
     // We have to dance a bit for BOXATOP verbs, because the result comes back unboxed, but it has to be put into a box
     // to be fed into the next iteration.  This is still a saving, because we can use the same box to point to each successive result.
     // Exception: if the reusable box gets incorporated, it is no longer reusable and must be reallocated.  We will use the original z box,
     // which will NEVER be virtual because it is an atom whenever BOXATOP is set, as the starting pointer to the prev boxed result
     A boxedz = z; z=(state&ZZFLAGBOXATOP)?AAV(z)[0]:z;  // init current pointer for the temp box; if BOXATOP, use >{:y as the first (to-be-boxed) result
    
    #define ZZDECL
    #define ZZSTARTATEND 1   // build result from bottom up
    #include "result.h"
    
      ZZPARMS(1,n,2)
    #define ZZINSTALLFRAME(optr) *optr++=n;
    
     AD * RESTRICT zz=0;
     for(i=0;i<n;++i){   // loop through items, noting that the first is the tail itself
      if(i){RZ(z=CALL2(f2,a,z,fs));}   // apply the verb to the arguments (except the first time)
    #define ZZBODY
    #include "result.h"
      // If BOXATOP, we need to reinstate the boxing around z for the next iteration.
      if(state&ZZFLAGBOXATOP){
       // If boxedz itself has been incorporated into the result, we have to reallocate it.  We don't need the usual check for z==boxedz, because we know we INCORPed z into
       // the boxed result, so if it was the same as boxedz, the usecount of boxedz was incremented then
       if(!ACIPISOK(boxedz))GAT0(boxedz,BOX,1,0);   // reallocate boxedz if needed
       AAV(boxedz)[0]=z; z=boxedz;  // point boxedz to the previous result, and make that the new argument for next time
      }
      // if result happens to be the same virtual block that we passed in, we have to clone it before we change the pointer
      else if(a==z){RZ(z=virtual(z,0,AR(a))); AN(z)=AN(a); MCISH(AS(z),AS(a),r-1);}
    
      AK(a)-=k;  // back up to next input
     }
    
    A jtscansp(J jt,A w,A self,AF sf){A e,ee,x,z;B*b;I f,m,j,r,t,wr;P*wp,*zp;
     wr=AR(w); r=(RANKT)jt->ranks; r=wr<r?wr:r; RESETRANK; f=wr-r;
     wp=PAV(w); e=SPA(wp,e); RZ(ee=over(e,e));
     if(!equ(ee,CALL1(sf,ee,self))){
      RZ(x=denseit(w));
      R IRS1(x,self,r,sf,z);
     }else{
      RZ(b=bfi(wr,SPA(wp,a),1));
      if(r&&b[f]){b[f]=0; RZ(w=reaxis(ifb(wr,b),w));}
      j=f; m=0; DQ(wr-f, m+=!b[j++];);
     }
     wp=PAV(w); e=SPA(wp,e); x=SPA(wp,x);
     RZ(x=IRS1(x,self,m,sf,z));
     t=maxtype(AT(e),AT(x)); RZ(e=cvt(t,e)); if(TYPESNE(t,AT(x)))RZ(x=cvt(t,x));
     GASPARSE(z,STYPE(t),1,wr+!m,AS(w)); if(!m)*(wr+AS(z))=1;
     zp=PAV(z); 
     SPB(zp,e,e); 
     SPB(zp,x,x); 
     SPB(zp,i,ca(SPA(wp,i))); 
     SPB(zp,a,ca(SPA(wp,a)));
     R z;
    }    /* f/\"r or f/\."r on sparse w */
    
    static DF1(jtsscan){A y,z;I d,f,m,n,r,t,wn,wr,*ws,wt;
     RZ(w);F1PREFIP;
     wt=AT(w);
     if(SPARSE&wt)R scansp(w,self,jtsscan);
     wn=AN(w); wr=AR(w); r=(RANKT)jt->ranks; r=wr<r?wr:r; f=wr-r; ws=AS(w); RESETRANK;
     PROD(m,f,ws); PROD1(d,r-1,f+ws+1); n=r?ws[f]:1;  // will not be used if WN==0, so PROD ok.  n is # items along the selected rank
     y=FAV(self)->fgh[0]; // y is f/
     if(((n-2)|(wn-1))<0){if(vaid(FAV(y)->fgh[0])){R r?RETARG(w):reshape(over(shape(w),num[1]),w);}else R IRS1(w,self,r,jtsuffix,z);}  // if empty arg, or just 1 cell in selected axis, convert to f/\ which handles the short arg 
    
       //

    Arbatan_Pokrovan, 12 Сентября 2019

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