1. Java / Говнокод #6577

    +68

    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
    public class Zayac {
    	public static void main(String args[]) {
        String ears="(\\_/)";
        String face="(-_-)";
        String hands="(> <)";
        String legs="(\")(\")";
        System.out.println(ears);
        System.out.println(face);
        System.out.println(hands);
        System.out.println(legs+'\n');
    	System.out.println('\t'+ears);
    	System.out.println('\t'+face);
    	System.out.println('\t'+hands);
        System.out.println('\t'+legs);
        System.out.println("\t"+"\t"+ears);
    	System.out.println("\t"+"\t"+face);
    	System.out.println("\t"+"\t"+hands);
        System.out.println("\t"+"\t"+legs);
    	}
    }

    Дело было вечером - делать было нечего.

    Akira, 06 Мая 2011

    Комментарии (16)
  2. Си / Говнокод #6576

    +137

    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
    /***   First, attempting to establish a SSL-connection   ***/
    		while(1)
    		{
    			sslConnection = sslConnect((const char *)remoteHost, port, CAFileName, CAPathName, error);
    			if(!sslConnection)
    			{
    				logger(ERR, "receiver: Can not establish SSL connection with %s [description - %s]", remoteHost, error);
    #ifndef DEBUG_MODE
    				if (WaitForSingleObject (hExitEvent, 5000) == WAIT_OBJECT_0)
    				{
    					if(logLevel == DEBUG_LOG_LEVEL)
    						logger(INFO, "receiver: Exit event was set in signaling state");
    					logger(INFO, "receiver: Exit");
    					return(0);
    				}
    #else
    				Sleep(5000);
    #endif
    				continue;
    			}
    			else
    			{
    				if(logLevel == DEBUG_LOG_LEVEL)
    				{
    					logger(INFO, "receiver: Connection with %s is established", remoteHost);
    				}
    				socketError = 0;
    				break;
    			}
    		}

    Пытаемся подключиться к серверу по SSL/TLS, отваливаемся по событию

    cepin, 06 Мая 2011

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

    +127

    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
    private void bbbut_Click(object sender, EventArgs e)
            {
                if (this.plugDescr.SelectedText.Length > 0)
                {
                    ToolStripButton button = (ToolStripButton) sender;
                    if (button.Name == "bbB")
                    {
                        this.plugDescr.SelectedText = BB_HTMLwork.WriteBBToString(this.plugDescr.SelectedText, "", "b");
                    }
                    if (button.Name == "bbI")
                    {
                        this.plugDescr.SelectedText = BB_HTMLwork.WriteBBToString(this.plugDescr.SelectedText, "", "i");
                    }
                    if (button.Name == "bbU")
                    {
                        this.plugDescr.SelectedText = BB_HTMLwork.WriteBBToString(this.plugDescr.SelectedText, "", "u");
                    }
                    if (button.Name == "bbS")
                    {
                        this.plugDescr.SelectedText = BB_HTMLwork.WriteBBToString(this.plugDescr.SelectedText, "", "s");
                    }
                    if (button.Name == "bbURL")
                    {
                        this.plugDescr.SelectedText = BB_HTMLwork.WriteBBToString(this.plugDescr.SelectedText, this.bbAddInfoContent.Text, "url");
                    }
                }
            }

    Обработчик кнопок ббкода в утилите для генерации ридми. Весь ее код выполнем в таком духе.
    Утилита: http://fullrest.ru/forum/topic/34114-generator-readme/
    Сорцы: http://depositfiles.com/files/kvi4gsajy

    Говногость, 06 Мая 2011

    Комментарии (37)
  4. C# / Говнокод #6574

    +124

    1. 1
    litFreeMinets.Text = FreeMinutes.Count;

    uassya, 06 Мая 2011

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

    +163

    1. 1
    2. 2
    3. 3
    function paging($pageNum,$rowsPerPage)
    {
    	GLOBAL $_GET, $_POST, $_SESSION;

    На всякий случай. Чтоб точно глобальные были. А то всякое бывает ...

    _tL, 06 Мая 2011

    Комментарии (16)
  6. PHP / Говнокод #6572

    +165

    1. 1
    2. 2
    3. 3
    4. 4
    function do_it()
    {
    	return false;
    }

    _tL, 06 Мая 2011

    Комментарии (27)
  7. Java / Говнокод #6571

    +76

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    public int getCount() {
    	return mViewMap == null
    			? mChannelList == null ? 0 : mChannelList.size()
    			: mViewMap.size();
    }

    ZaDroid, 06 Мая 2011

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

    +151

    1. 1
    $time_sh=date('Y-m-d H:i:s',  time());

    Stamm, 06 Мая 2011

    Комментарии (11)
  9. Ruby / Говнокод #6569

    −110

    1. 1
    2. 2
    3. 3
    def parse_time(input, minutes = false)
        TimeParser.parse_time(current_user, input, minutes)
     end

    intale, 06 Мая 2011

    Комментарии (9)
  10. Ruby / Говнокод #6568

    −105

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    7. 7
    def index
        list
        render :action => 'list'
      end
    
      def list
      end

    intale, 06 Мая 2011

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