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

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

    +125

    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
    <html>
    <head>
    <title>Документ без названия</title>
    </head>
    <body background="images/2.jpg" text="#3300FF">
    <h1 align="center"><em><a href="ss/fghj.html">Олька Демида</a></em></h1>
    <table border="0"><tr><td width="154"><a href="qwe.html"><img align="left" src="file:///D|/proekt1/images/y_b24b2190.jpg" width="150" height="200"></a></td><td width="229">
    <b>Дата рождения:</b> 31 июля 1989 г.
    <br><b>Родной город:</b> Сопоцкино
    <br><b>Вуз:</b> ГрГУ им. Янки Купалы
    <br>
    <b>Факультет:</b> Физкультуры
    <br>
    <b>Форма обучения:</b> Заочное отделение
    <br>
    <b>Училище:</b> Медицинский (ГГМК) Гродно, 2007-2010</td><td width="459"><img src="images/image.gif" width="459" height="54"></td></table>
     <br><br><br><br><br><hr>
     <table align="center" border=0 width="500" height="300">
     <tr><td>
     <object type=application/x-shockwave-flash data=http://htmlka.com/wp-content/uploads/2009/08/onlytothegoodpeople1.swf  height="400" width="400"<param name=movie value=http://htmlka.com/wp-content/uploads/2009/08/onlytothegoodpeople1.swf></object></td>
     
    <td><marquee direction="up" scrollamount="3" height="300" style="filter:wave(add=1, phase=10, freq=2, strength=300); colortag="red";><font color="navy">
    Гордая, даже слишком, позитивная до жути, <br>местами легковерная, ранимая,но скрытная,<br> своенравная,добрая,непоправимая, оооочень<br> общительная одиночка, упрямая и живучая,<br> умеющая прощать и обожающая пошутить,<br> вредная, иногда невыносимо.
    Ненавидит ложь,<br>слякоть и пауков. Не прощает предательства.<br>
    Ценит дружбу, надёжность и верность.Обожает<br>  юмор и приятные сюрпризы.
    </font></marquee></td><td>
     <object type="application/x-shockwave-flash" data="http://htmlka.com/wp-content/uploads/2011/08/imagination.swf"height="300" width="300"><param name="movie" value="http://htmlka.com/wp-content/uploads/2011/08/imagination.swf"></object> <br><small><a href=http://htmlka.com target=_blank></small><td>
    </table><br><hr>
    
    <object type="application/x-shockwave-flash" data="ump3player_500x70.swf" height="70" width="470"><param name="wmode" value="transparent" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="movie" value="ump3player_500x70.swf" /><param name="FlashVars" value="way=three_days_grace_-_break.mp3&amp;swf=ump3player_500x70.swf&amp;w=470&amp;h=70&amp;time_seconds=0&amp;autoplay=0&amp;q=&amp;skin=red&amp;volume=70&amp;comment=" /></object><a href="javascript:history.go(-1)">НАЗАД</A>
    <br>
    
    
    </body>
    </html>

    qwe, 14 Ноября 2011

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

    +125

    1. 1
    ++[>+++++[>++++++<-]<-]++[>+++++<-]>>+++<<+[[,----------]>>.<.<+]

    ed на brainfuck'е

    rat4, 13 Ноября 2011

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

    +125

    1. 1
    http://lurkmore.ru/govnokod.ru

    Неужели у нас наконец-то будет статья?

    C_Plus_Plus_Govno, 09 Ноября 2011

    Комментарии (136)
  5. C# / Говнокод #8393

    +125

    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
    /// <summary>
    		/// Конвертирование String - Decimal
    		/// </summary>
    		/// <param name="text"></param>
    		/// <param name="value"></param>
    		/// <returns></returns>
    		public static decimal GetDecimal(this string text)
    		{
    			decimal number;
    			CultureInfo culture = null;
    
    			if (String.IsNullOrEmpty(text))
    				throw new ArgumentNullException("The input string is invalid.");
    
    			try
    			{
    				culture = CultureInfo.CurrentCulture;
    				number = decimal.Parse(text, culture);
    				return number;
    			}
    			catch
    			{
    			}
    
    			try
    			{
    				culture = culture.Parent;
    				number = decimal.Parse(text, culture);
    				return number;
    			}
    			catch
    			{
    			}
    
    			culture = CultureInfo.InvariantCulture;
    			try
    			{
    				number = decimal.Parse(text, culture);
    				return number;
    			}
    
    			catch (FormatException e)
    			{
    				throw new FormatException(String.Format("Unable to parse '{0}'.", text), e);
    			}
    		}

    Это финиш.

    fr0mrus, 02 Ноября 2011

    Комментарии (2)
  6. C# / Говнокод #8094

    +125

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    7. 7
    8. 8
    if (row["Comments"] != null || row["Comments"] != string.Empty)
                            {
                                deptEvents.Description = string.Format(Convert.ToString(row["Comments"]));
                            }
                            else
                            {
                                deptEvents.Description = "N/A";
                            }

    Еще Норвеги писаки-проверяки.

    Особенно доставляет:
    string.Format(Convert.ToString(row["Comments"]));

    и

    if (row["Comments"] != null || row["Comments"] != string.Empty)

    jenik15, 05 Октября 2011

    Комментарии (12)
  7. C# / Говнокод #7974

    +125

    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
    if ((pen == true) || (brush == true))
     {
     mousePath = new System.Drawing.Drawing2D.GraphicsPath();
     myPaths.Add(mousePath);
     }
     else
     if ((rectangle == true) && (e.X > 0) && (e.Y > 0) && (e.X < pictureBox1.Width)
     && (e.Y < pictureBox1.Height))
     {
     if (Border == true)
     {
     PenForBrush.Width = trackBar1.Value;
    if ((e.X >= rectX) && (e.Y >= rectY))
    {
    g.DrawRectangle(PenForBrush, rectX, rectY, e.X - rectX, e.Y - rectY);
    }
    else
    if ((e.X <= rectX) && (e.Y <= rectY))
    {
    Rectangle R = new Rectangle(e.X, e.Y, rectX - e.X, rectY - e.Y);
    g.DrawRectangle(PenForBrush, R);
    }
    else
    if ((e.X <= rectX) && (e.Y >= rectY))
    {
    Rectangle R = new Rectangle(e.X, rectY, rectX - e.X, e.Y - rectY);
    g.DrawRectangle(PenForBrush, R);
    }
    else
    if ((e.X >= rectX) && (e.Y <= rectY))
    {
    Rectangle R = new Rectangle(rectX, e.Y, e.X - rectX, rectY - e.Y);
    g.DrawRectangle(PenForBrush, R);
    }
    }
    else  if (FillBorder == true)
    {
    else
    if ((e.X <= rectX) && (e.Y <= rectY))
    {
    Rectangle R = new Rectangle(e.X + width, e.Y + width,
    rectX - e.X - trackBar1.Value, rectY - e.Y - trackBar1.Value);
    g.FillRectangle(FillBrush, R);
                                        g.DrawRectangle(PenForBrush, e.X, e.Y, rectX - e.X, rectY - e.Y);
                                    }
                                    else
                                        if ((e.X <= rectX) && (e.Y >= rectY))
                                        {
                                            Rectangle R = new Rectangle(e.X + width, rectY + width,
                                                                        rectX - e.X - trackBar1.Value, e.Y - rectY - trackBar1.Value);
                                            g.FillRectangle(FillBrush, R);
                                            g.DrawRectangle(PenForBrush, e.X, rectY, rectX - e.X, e.Y - rectY);
                                        }
                                        else
                                            if ((e.X >= rectX) && (e.Y <= rectY))
                                            {
                                                Rectangle R = new Rectangle(rectX + width, e.Y + width,
                                                                            e.X - rectX - trackBar1.Value, rectY - e.Y - trackBar1.Value);
                                                g.FillRectangle(FillBrush, R);
                                                g.DrawRectangle(PenForBrush, rectX, e.Y, e.X - rectX, rectY - e.Y);
                                            }
                            }
    else               if ((mark == true) && (!IsMarkPaint)
                        && (e.X - distance1 > 0) && (e.Y - distance2 > 0)
                        && (e.X + distance3 < pictureBox1.Width) && (e.Y + distance4 < pictureBox1.Height))
                    {
                        if (Count == 0)
                        {
                            try
                            {
                                Rectangle R = new Rectangle(PreviousMarkPoint.X, PreviousMarkPoint.Y,
                                    MarkRectangle.Width, MarkRectangle.Height);
                                SolidBrush s = new SolidBrush(Color.White);
                                g.FillRectangle(s, R);
    Bitmap temp = new Bitmap(pictureBox1.Image.Width, pictureBox1.Image.Height);
                                temp = (Bitmap)pictureBox1.Image;
                                ImageClone = temp.Clone(MarkRectangle, PixelFormat.Format16bppArgb1555);
                            }
                            catch { }
    if (myImages.Count > 35)
                {
                    myImages.RemoveAt(0);
                    ImageNames.RemoveAt(0);
                }

    Графический редактор

    GavnoCoder111, 25 Сентября 2011

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

    +125

    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
    bc=(ay*ax*az)
    check1 = ((bc+bc)*(ax+acx)*(az+acz))
    check2 = p_ar.count-9
    if check1!=check2 then change(messagebox "rebuild")
    
    --position
    dmorr1=#0
    dmar2=#0
    dmar3=#0
    
    --Y update
    if acy>0 and bc
    {
        dmar1=#0
        dmar2=#0
        rnum = (bp+ch)
        for i=1 to pcount do
        {
            if (sag m)!=0 then
            {
                append dmar2(getUserProp cnode("cp" + (i as string)))
            }
            else
            }
                append dmar2(getUserProp dconde("cp" + (i as string)))
                append imgt1 dmar2
                dmar2=#0
            }

    Анимекод (или более обще можно назвать TVcode).
    Из Ore no Imouto ga Konnani Kawaii Wake ga Nai, когда писали визуальную новеллу.

    Niceblack, 18 Августа 2011

    Комментарии (14)
  9. C# / Говнокод #7462

    +125

    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
    for(int i = 0; i<et.Days.Count; i++)
                {
                if (et.Days[i].WorkDay.Day == colno - 1)
                    {
                    EmplTabelDays etd = et.Days[i];
    
                    switch (colno)
                        {
                        case 0:
                            break;
                        case 1:
                            break;
                        default:
                                {
                                //pinc.TypeIncome = (IncomeItem)
                                //((TreeNodeHelper)(income_grid.Rows[e.RowIndex].Cells[e.ColumnIndex]).Value).Value;
    
                                //etd.WorkStatus = (WorkStatus)((DataGridViewCell)(WorkDaysGrid.Rows[recno].Cells[colno]).Value).Value;
    
                                DataGridViewCell cell = WorkDaysGrid.Rows[recno].Cells[colno];
                                if (SpecialButton.Checked == false)
                                    {
                                    etd.TypeWorkHours = 8;
    //еще 100500 строк гавнокода...
    
                                    if (cell.Value == "8")
                                        etd.WorkStatus.Id = 1;
                                    if (cell.Value == "-")
                                        etd.WorkStatus.Id = 2;
                                    if (cell.Value == "О")
                                        etd.WorkStatus.Id = 3;
                                    if (cell.Value == "Б")
                                        etd.WorkStatus.Id = 4;
                                    if (cell.Value == "Р")
                                        etd.WorkStatus.Id = 5;
                                    if (cell.Value == "П")
                                        etd.WorkStatus.Id = 6;
                                    if (cell.Value == "А")
                                        etd.WorkStatus.Id = 7;
                                    if (cell.Value == "Г")
                                        etd.WorkStatus.Id = 8;
                                    if (cell.Value == "С")
                                        etd.WorkStatus.Id = 9;
    
                                    }

    Найдено в коде программы табель для бухгалтерии.
    Заполнение справочника с типами дней на основе ячеек грида.
    KeyboardInheritance в чистом виде.

    etcshadow, 05 Августа 2011

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

    +125

    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
    protected string getUpdateNotesDE(string fieldNameAlias, string fieldName, string fieldValue, ASPxDateEdit newValue)
            {
                if (isSaveField("fieldName"))
                {
                    if (fieldValue != "")
                        return "Field " + locCom.getFieldAlias("payTFNDeclaredOn") + ", Old Value = " + Convert.ToDateTime(fieldValue).ToString("dd/MM/yyyy") + ", New Value = " + Convert.ToDateTime(newValue.Text).ToString("dd/MM/yyyy") + " ; ";
                    else
                        if (newValue.Text != "")
                            return "Field " + locCom.getFieldAlias("payTFNDeclaredOn") + ", Old Value = , New Value = " + Convert.ToDateTime(newValue.Text).ToString("dd/MM/yyyy") + " ; ";
                }
                return "";
    
            }
    
     protected Boolean isSaveField(string fieldName)
            {
                if (locCom.getVisible(fieldName))
                    return true;
                return false;
            }
    
     public bool getVisible(string fldName)
                {
                    Boolean showall = Convert.ToBoolean(System.Web.Configuration.WebConfigurationManager.AppSettings.Get("Show-all-fields"));
                    if (showall) return true;
    
                    if (fldAccess.Tables.Count == 0) return false;
    
                    foreach (System.Data.DataRow item in fldAccess.Tables[0].Rows)
                    {
                        if (item["fieldname"].ToString().Replace('@', 'a').Replace("%", "percent").Replace("$", "dollar").ToLower() == fldName.ToLower())
                            return Convert.ToBoolean(item["visible"]);
                    }
                    return false;
                }

    особенно доставляет
    protected string getUpdateNotesDE(string fieldName){
    if (isSaveField( !!! "fieldName" !!!)){}
    }

    valorkin, 15 Июня 2011

    Комментарии (6)
  11. C# / Говнокод #6924

    +125

    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
    using System.Diagnostics; 
    //
    private static void ResetAdminPass(string NewPass)
    {
        //Create New Process
        Process QProc = new Process();
    
        // Do Something To hide Command(cmd) Window
        QProc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
        QProc.StartInfo.CreateNoWindow = true;
    
        // Call Net.exe
        QProc.StartInfo.WorkingDirectory = "C:\\windows\\SYSTEM32";
        QProc.StartInfo.FileName = "net.exe";
        QProc.StartInfo.UseShellExecute = false;
        QProc.StartInfo.RedirectStandardError = true;
        QProc.StartInfo.RedirectStandardInput = true;
        QProc.StartInfo.RedirectStandardOutput = true;
    
        // Prepare Command for Exec
        QProc.StartInfo.Arguments = @" user administrator " + NewPass;
        QProc.Start();
    
        // MyProc.WaitForExit();
        QProc.Close();
    }
    //

    http://www.codeproject.com/KB/threads/Reset-Administrator-Pass.aspx
    индусы просто охуительны

    bugmenot, 11 Июня 2011

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