1. Список говнокодов пользователя Madhouse_camomile

    Всего: 3

  2. Си / Говнокод #27215

    −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
    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
    includelib  C:\Irvine\User32.Lib
    includelib  C:\Irvine\Kernel32.Lib
    includelib  D:\masm32\lib\Irvine32.lib
    include     \masm32\include\Irvine32.inc
    
    .data
    
    data_1 dword  45
    
    data_2 dword 29
    
    msg byte ?
    
    .code
    main PROC
    xor ebx,  ebx
    xor eax,  eax
    xor edx,  edx
    xor esi,  esi
    
    mov cl ,31
    mov eax, data_1
    mov esi , data_2
    
    
    lm:
    
    shl esi,   1
    jnc one
    cmp msg, 1
    
    je two
    shl eax,   cl
    
    mov   msg, 1
    mov ebx, data_1
    jmp one
    
    two:
    
    shl ebx, cl
    mov   msg, 0
    add eax, ebx
    add edx , eax
    mov eax, data_1
    
    
    one:
    
    loop lm
    
    mov eax , edx
    
    call WriteInt
    Call CrLf
    	
    	exit
    main ENDP
    END main

    Hey, Mr. Tambourine Man, play a song for me
    I'm not sleepy and there is no place I'm going to
    Hey, Mr. Tambourine Man, play a song for me
    In the jingle jangle morning I'll come following you
    Though I know that evening's empire has returned into sand
    Vanished from my hand
    Left me blindly here to stand, but still not sleeping
    My weariness amazes me, I'm branded on my feet
    I have no one to meet
    And the ancient empty street's too dead for dreaming
    Hey, Mr. Tambourine Man, play a song for me
    I'm not sleepy and there is no place I'm going to
    Hey, Mr. Tambourine Man, play a song for me
    In the jingle jangle morning I'll come following you
    Take me on a trip upon your magic swirling ship
    My senses have been stripped
    My hands can't feel to grip
    My toes too numb to step
    Wait only for my boot heels to be wandering
    I'm ready to go anywhere, I'm ready for to fade
    Into my own parade
    Cast your dancing spell my way, I promise to go under it
    Hey, Mr. Tambourine Man, play a song for me
    I'm not sleepy and there is no place I'm going to
    Hey, Mr. Tambourine Man, play a song for me
    In the jingle jangle morning I'll come following you

    Madhouse_camomile, 14 Января 2021

    Комментарии (2)
  3. Python / Говнокод #27206

    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
    import fnmatch,os,datetime,time,re,shutil,sys 
    	
    def find(pattern, startdir=os.curdir): 
    		for (thisDir, subsHere, filesHere) in os.walk(startdir): # 
    			for name in subsHere + filesHere:
    				if fnmatch.fnmatch(name,pattern): 
    					fullpath = os.path.join(thisDir,name)
    					yield fullpath 
    
    def timeconvert(x):
    	convert  = time.strftime("%Y-%m-%d",time.localtime(os.path.getctime(x)))   
    	return   convert
    
    print("select action: delete: delete files: copy: copy files: view: view files")
    action = input(" ")
    
    if action == "copy":
        print("inter path")
        dest = input(" ") 
    
    else:
        print ("inter date")
        cursive = input("")
        optime  = re.search('20[0-12]\d{1,2}.\d{1,2}',cursive)
    
    if optime == None:
        print ('error')
    else:    
    	if __name__== '__main__':
    		import sys 
    		namepattern,startdir, = sys.argv[1],sys.argv[2]
            for name in find(namepattern,startdir): 
            
    		
              
    		  if not  str(cursive) <= timeconvert(name):   
                if action == 'copy':
                    shutil.copy(name, dest)
                
    			elif action == 'delete':
                    os.remove(name)
    			  
                elif  action == "view":
                   print(name + timeconvert(name))
                
    			else:
                    print ('error')

    Я по сусекам метён,
    По коробам скребён,
    На сыром масле мешен,
    На окошке стужен;
    Я от дедушки ушёл,
    Я от бабушки ушёл,
    И от тебя убегу.

    Madhouse_camomile, 11 Января 2021

    Комментарии (0)
  4. Assembler / Говнокод #27205

    −6

    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
    includelib  C:\Irvine\User32.Lib
    includelib  C:\Irvine\Kernel32.Lib
    includelib  D:\masm32\lib\Irvine32.lib
    include     \masm32\include\Irvine32.inc
    
    ; D:/masm32/bin/ml.exe /c  /coff  "D:\asm\rcl.asm"
    ; D:/masm32\bin\link.exe /subsystem:console  "D:\asm\rcl.obj"
    
    .data
    
      
    .code
    main PROC
      xor eax, eax
      xor edx , edx
      
      mov al , 10101010b
      
      cmp al,80h
      jns just
      shr al,1
      jmp print
      
      just:
     
      shr al,1
      or ax,80h
     
      print:
      call WriteBin
    		
    	exit
    	main ENDP
    END main

    Дай бог здоровья товарищу Ирвину.

    Madhouse_camomile, 10 Января 2021

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