- 1
 - 2
 - 3
 - 4
 - 5
 - 6
 - 7
 
if ((ObjectType)value == ObjectType.Undefined)
{
    return string.Empty;
}
{
    return ((ObjectType)value).GetDescriptionAttribute();
}
                                    Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+139
if ((ObjectType)value == ObjectType.Undefined)
{
    return string.Empty;
}
{
    return ((ObjectType)value).GetDescriptionAttribute();
}
                                    Как будто не хватает чего-то..
+155
<?php
class Json_Encode {
    public function Encode($obj) {
        $str = "";
        $type = gettype($obj);
        if ($type == "array") {
            $fst = 1;
            
            if (array_keys($obj) !== range(0, count($obj) - 1)) {
                $str .= "{";
                foreach($obj as $id=>$el) {
                    if ($fst) {
                        $fst = 0;
                    } else {
                        $str .= ",";
                    }
                    $str .= "\"$id\":";
                    $str .= $this->Encode($el);
                }
                $str .= "}";            
            } else {
                $str .= "[";
                foreach($obj as $el) {
                    if ($fst) {
                        $fst = 0;
                    } else {
                        $str .= ",";
                    }
                    $str .= $this->Encode($el);
                }
                $str .= "]";            
            }
        } else if ($type == "string") {
            $str .= "\"$obj\"";
        } else if ($obj == null) {
            $str .= "null";
        } else {
            $str .= "$obj";
        }
        return $str;
    }
}
                                    
            Листинг файла json_encode.php
От души посмеялся.
        
+163
var sound = 0;
		
		function chooseSound(x) {
			if(x == 0)	sound = 0;
			else if(x == 1) sound = 1;
			else if(x == 2) sound = 2;
			else if(x == 3) sound = 3;
			else if(x == 4) sound = 4;
			else if(x == 5) sound = 5;
			else if(x == 6) sound = 6;
			else if(x == 7) sound = 7;
			else if(x == 8) sound = 8;
			else if(x == 9) sound = 9;
			else if(x == 10) sound = 10;
			else if(x == 11) sound = 11;
			else if(x == 12) sound = 12;
			else if(x == 13) sound = 13;
			else if(x == 14) sound = 14;
			else sound = 15;
		}
                                    отакота
+133
//программист
        private void work7_Click(object sender, EventArgs e)
        {
            if ((player.CompLevel > 50) & (player.GamedevLevel > 20))
            {
                work1.Enabled = true;
                work2.Enabled = true;
                work3.Enabled = true;
                work4.Enabled = true;
                work5.Enabled = true;
                work6.Enabled = true;
                work7.Enabled = false;
                player.Salary = 20000;
                player.Levels = 50;
                player.HealthWork = 0;
                Game_Update();
            }
            else MessageBox.Show("Ты еще плохо знаешь программирование и компьютер");
        }
                                    Оттуда ж.
+23
struct mystream: public std::ostream 
{
    mystream(std::ostream & o): std::ostream(o.rdbuf()) {}
    template <class T>
    mystream & operator << (T const & arg)
    {
        if (enabled_) as_std_ostream() << arg;
        return *this;
    }
    // дерьмо STX
    mystream & operator << (std::ostream & (*f)(std::ostream &))
    {
        if (enabled_) as_std_ostream() << f;
        return *this;
    }
    mystream & operator << (std::ios & (*f)(std::ios &))
    {
        if (enabled_) as_std_ostream() << f;
        return *this;    
    }
    mystream & operator << (std::ios_base & (*f)(std::ios_base &))
    {
        if (enabled_) as_std_ostream() << f;
        return *this;
    }
    // дерьмо ETX
    void enable() { enabled_ = true; }
    void disable() { enabled_ = false; }
protected:
    bool enabled_;
    std::ostream & as_std_ostream() { return *this; }
};
                                    
            а так хотелось хоть сегодня рыбки поесть захерачить вместо трёх перегрузок
template <class O>
mystream & operator << (O & (*f)(O &)) { ...
        
+140
#!/bin/bash
#
# Поздравляю с 8 марта! 
# Желаю море любви, блядь.
#
                                    8===o
+135
// где-то в коде нашлось
PRIVATE IdxArray* idx_array_append_val_dyn(IdxArray* arr, PlmIndex idx)
// private.h
#ifdef PLM_TEST
#define PRIVATE extern
#else
#define PRIVATE static
#endif
                                    внезапно...
+75
public class ExtractSubstrings {
	public static void main(String[] args) {
		String text = “To be or not to be”;
		int count = 0;
		char separator = ‘ ‘;
		int index = 0;
		do {
			++count;
			++index;
			index = text.indexOf(separator, index);
		} while (index != -1);
		String[] subStr = new String[count];
		index = 0;
		int endIndex = 0;
	
		for(int i = 0; i < count; ++i) {
			endIndex = text.indexOf(separator,index);
			
			if(endIndex == -1) {
				subStr[i] = text.substring(index);
			} else {
				subStr[i] = text.substring(index, endIndex);
			}
			
			index = endIndex + 1;
		}
		for(String s : subStr) {
			System.out.println(s);
		}
	}
}
                                    Очень чёткий, простой и с первого взгляда сразу понятный способ сделатЬ сплит строки.
+116
public const string Checked = "☑";
public const string Unchecked = "☐";
                                    Чекбокс
+13
long a=1;
for(;;)
{
   long  *p_ex = new long;
   *p_ex = a++;
   std::cout << *p_ex << std::endl;
}
                                    "У кого больше?" Или пытки компа утечкой памяти)