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

    Всего: 2

  2. Swift / Говнокод #20854

    −677

    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
    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
            
            let rootViewController = LAMainViewController(nibName: nil, bundle: nil)
            let navigationController = LANavigationController()
            
            let gradientLayer = CAGradientLayer()
            
            gradientLayer.colors = [UIColor.blackColor().CGColor, UIColor(hexString: "330033", alpha: 1)!.CGColor]
            gradientLayer.locations = [0, 1]
            gradientLayer.frame = window!.frame
    
            navigationController.viewControllers = [rootViewController]
            
            window!.rootViewController = navigationController
            window!.makeKeyAndVisible()
            window!.layer.insertSublayer(gradientLayer, atIndex: 0)
            
            return true
        }

    давайте слой зафигачим на окно

    grampe, 18 Августа 2016

    Комментарии (15)
  3. Java / Говнокод #13924

    +71

    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
    app_preferences = PreferenceManager.getDefaultSharedPreferences(context);
    			
    	        mApplication = (MyApplication)context;
    if(mApplication.nomgor == 0 ){
                  mApplication.MyPacket.id = Integer.parseInt(app_preferences.getString("ID", "0"));
    		      mApplication.MyPacket.Pass = app_preferences.getString("PASS_ID","");//в работе
                  }
                if(mApplication.nomgor == 1 ){
                   mApplication.MyPacket.id = Integer.parseInt(app_preferences.getString("ID1", "0"));
                   mApplication.MyPacket.Pass = app_preferences.getString("PASS_ID1","");//в работе
                  }
                if(mApplication.nomgor == 2 ){
                   mApplication.MyPacket.id = Integer.parseInt(app_preferences.getString("ID2", "0"));
                   mApplication.MyPacket.Pass = app_preferences.getString("PASS_ID2","");//в работе
                   }
                if(mApplication.nomgor == 3 ){
                   mApplication.MyPacket.id = Integer.parseInt(app_preferences.getString("ID3", "0"));
                   mApplication.MyPacket.Pass = app_preferences.getString("PASS_ID3","");//в работе
                   }
                if(mApplication.nomgor == 4 ){
                  mApplication.MyPacket.id = Integer.parseInt(app_preferences.getString("ID4", "0"));
                  mApplication.MyPacket.Pass = app_preferences.getString("PASS_ID4","");//в работе
                  }
                if(mApplication.nomgor == 5 ){
                  mApplication.MyPacket.id = Integer.parseInt(app_preferences.getString("ID5", "0"));
                  mApplication.MyPacket.Pass = app_preferences.getString("PASS_ID5","");//в работе
                  }
                if(mApplication.nomgor == 6 ){
                   mApplication.MyPacket.id = Integer.parseInt(app_preferences.getString("ID6", "0"));
                   mApplication.MyPacket.Pass = app_preferences.getString("PASS_ID6","");//в работе
                   }
                if(mApplication.nomgor == 7 ){
                   mApplication.MyPacket.id = Integer.parseInt(app_preferences.getString("ID7", "0"));
                   mApplication.MyPacket.Pass = app_preferences.getString("PASS_ID7","");//в работе
                   }
                if(mApplication.nomgor == 8 ){
                   mApplication.MyPacket.id = Integer.parseInt(app_preferences.getString("ID8", "0"));
                   mApplication.MyPacket.Pass = app_preferences.getString("PASS_ID8","");//в работе
                   }
                if(mApplication.nomgor == 9 ){
                   mApplication.MyPacket.id = Integer.parseInt(app_preferences.getString("ID9", "0"));
                   mApplication.MyPacket.Pass = app_preferences.getString("PASS_ID9","");//в работе
                   }
                if(mApplication.nomgor == 10 ){
                  mApplication.MyPacket.id = Integer.parseInt(app_preferences.getString("ID10", "0"));
                  mApplication.MyPacket.Pass = app_preferences.getString("PASS_ID10","");//в работе
                  }
                if(mApplication.nomgor == 11 ){
                  mApplication.MyPacket.id = Integer.parseInt(app_preferences.getString("ID11", "0"));
                  mApplication.MyPacket.Pass = app_preferences.getString("PASS_ID11","");//в работе
                  }
                if(mApplication.nomgor == 12 ){
                   mApplication.MyPacket.id = Integer.parseInt(app_preferences.getString("ID12", "0"));
                   mApplication.MyPacket.Pass = app_preferences.getString("PASS_ID12","");//в работе
                   }
                if(mApplication.nomgor == 13 ){
                   mApplication.MyPacket.id = Integer.parseInt(app_preferences.getString("ID13", "0"));
                   mApplication.MyPacket.Pass = app_preferences.getString("PASS_ID13","");//в работе
                  }
                if(mApplication.nomgor == 14 ){
                   mApplication.MyPacket.id = Integer.parseInt(app_preferences.getString("ID14", "0"));
                   mApplication.MyPacket.Pass = app_preferences.getString("PASS_ID14","");//в работе
                   }
                if(mApplication.nomgor == 15 ){
                   mApplication.MyPacket.id = Integer.parseInt(app_preferences.getString("ID15", "0"));
                   mApplication.MyPacket.Pass = app_preferences.getString("PASS_ID15","");//в работе
                   }
                if(mApplication.nomgor == 16 ){
                   mApplication.MyPacket.id = Integer.parseInt(app_preferences.getString("ID16", "0"));
                   mApplication.MyPacket.Pass = app_preferences.getString("PASS_ID16","");//в работе
                   }
                if(mApplication.nomgor == 17 ){
                   mApplication.MyPacket.id = Integer.parseInt(app_preferences.getString("ID17", "0"));
                   mApplication.MyPacket.Pass = app_preferences.getString("PASS_ID17","");//в работе
                   }

    кто-то с детства привык копипастить

    grampe, 09 Октября 2013

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