Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. m&ms destroyed my code

m&ms destroyed my code

Scheduled Pinned Locked Moved The Lounge
csharpdata-structures
15 Posts 10 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Muammar

    I just came back from the park where I was coding peacefully and reading some cp articles, I had to take a break and I left a C# page open, before that, I had some m&ms scattered on the keyboard so I can have some while coding:), my one year old daughter was playing around and when I turned back to the laptop!!!! no m&ms, and even worse the code was like..

       private void Color\_Levels()
        {
            for (int x = 0; x < tree\_Level.Nodes.Count; x++)
            {
                tree\_Level.Nodes\[x\].ForeColor = Color.Navy;
                for (int y = 0; y < tree\_Level.Nodes\[x\].Nodes.Count; y++)
                {fffffffffffffffffffffffffffffffffrrrrrrrrrrrrrrttttttttttttttttttttttttt333333333333
                    tree\_Level.Nodes\[x\].Nodes\[y\].ForeColor = Color.SlateGray;
                    for (int z = 0; z < tree\_Level.Nodes\[x\].Nodes\[y\].Nodes.Count; z++)
                        tree\_Level.Nodes\[x\].Nodes\[y\].Nodes\[z\].ForeColor = Color.LightSteelBlue;
                }
    

    ps. dont charge me for posting a code snippet in here;P Thank God I was there when she wanted to take the last one setting happily on the power button :laugh:


    Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

    C Offline
    C Offline
    Chris Meech
    wrote on last edited by
    #5

    Were they coloured M&Ms. Did she eat the reds last.

    Chris Meech I am Canadian. [heard in a local bar]

    1 Reply Last reply
    0
    • M Muammar

      I just came back from the park where I was coding peacefully and reading some cp articles, I had to take a break and I left a C# page open, before that, I had some m&ms scattered on the keyboard so I can have some while coding:), my one year old daughter was playing around and when I turned back to the laptop!!!! no m&ms, and even worse the code was like..

         private void Color\_Levels()
          {
              for (int x = 0; x < tree\_Level.Nodes.Count; x++)
              {
                  tree\_Level.Nodes\[x\].ForeColor = Color.Navy;
                  for (int y = 0; y < tree\_Level.Nodes\[x\].Nodes.Count; y++)
                  {fffffffffffffffffffffffffffffffffrrrrrrrrrrrrrrttttttttttttttttttttttttt333333333333
                      tree\_Level.Nodes\[x\].Nodes\[y\].ForeColor = Color.SlateGray;
                      for (int z = 0; z < tree\_Level.Nodes\[x\].Nodes\[y\].Nodes.Count; z++)
                          tree\_Level.Nodes\[x\].Nodes\[y\].Nodes\[z\].ForeColor = Color.LightSteelBlue;
                  }
      

      ps. dont charge me for posting a code snippet in here;P Thank God I was there when she wanted to take the last one setting happily on the power button :laugh:


      Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #6

      she deleted all your whitespace? ;)

      image processing toolkits | batch image processing

      1 Reply Last reply
      0
      • M Muammar

        I just came back from the park where I was coding peacefully and reading some cp articles, I had to take a break and I left a C# page open, before that, I had some m&ms scattered on the keyboard so I can have some while coding:), my one year old daughter was playing around and when I turned back to the laptop!!!! no m&ms, and even worse the code was like..

           private void Color\_Levels()
            {
                for (int x = 0; x < tree\_Level.Nodes.Count; x++)
                {
                    tree\_Level.Nodes\[x\].ForeColor = Color.Navy;
                    for (int y = 0; y < tree\_Level.Nodes\[x\].Nodes.Count; y++)
                    {fffffffffffffffffffffffffffffffffrrrrrrrrrrrrrrttttttttttttttttttttttttt333333333333
                        tree\_Level.Nodes\[x\].Nodes\[y\].ForeColor = Color.SlateGray;
                        for (int z = 0; z < tree\_Level.Nodes\[x\].Nodes\[y\].Nodes.Count; z++)
                            tree\_Level.Nodes\[x\].Nodes\[y\].Nodes\[z\].ForeColor = Color.LightSteelBlue;
                    }
        

        ps. dont charge me for posting a code snippet in here;P Thank God I was there when she wanted to take the last one setting happily on the power button :laugh:


        Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

        M Offline
        M Offline
        Marc Clifton
        wrote on last edited by
        #7

        I don't think she likes your choice of SlateGray and LightSteelBlue. Marc

        Thyme In The Country
        Interacx
        My Blog

        M 1 Reply Last reply
        0
        • M Muammar

          I just came back from the park where I was coding peacefully and reading some cp articles, I had to take a break and I left a C# page open, before that, I had some m&ms scattered on the keyboard so I can have some while coding:), my one year old daughter was playing around and when I turned back to the laptop!!!! no m&ms, and even worse the code was like..

             private void Color\_Levels()
              {
                  for (int x = 0; x < tree\_Level.Nodes.Count; x++)
                  {
                      tree\_Level.Nodes\[x\].ForeColor = Color.Navy;
                      for (int y = 0; y < tree\_Level.Nodes\[x\].Nodes.Count; y++)
                      {fffffffffffffffffffffffffffffffffrrrrrrrrrrrrrrttttttttttttttttttttttttt333333333333
                          tree\_Level.Nodes\[x\].Nodes\[y\].ForeColor = Color.SlateGray;
                          for (int z = 0; z < tree\_Level.Nodes\[x\].Nodes\[y\].Nodes.Count; z++)
                              tree\_Level.Nodes\[x\].Nodes\[y\].Nodes\[z\].ForeColor = Color.LightSteelBlue;
                      }
          

          ps. dont charge me for posting a code snippet in here;P Thank God I was there when she wanted to take the last one setting happily on the power button :laugh:


          Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

          L Offline
          L Offline
          lost in transition
          wrote on last edited by
          #8

          My kids are forbidden from getting around my PC. Although, for them I have an old junker that the 'work' on.

          God Bless, Jason

          1 Reply Last reply
          0
          • B Big Daddy Farang

            Muammar© wrote:

            Thank God I was there when she wanted to take the last one setting happily on the power button

            No, actually that would have fixed the problem, wouldn't it? I mean you obviously saved your work before you walked away from the computer, right? I never have these problems with peanut M&Ms. I'll bet you had plain, right? BDF

            L Offline
            L Offline
            lost in transition
            wrote on last edited by
            #9

            Big Daddy Farang wrote:

            I mean you obviously saved your work before you walked away from the computer, right?

            Obviously, to obvious of a question to ask.:confused:

            God Bless, Jason

            1 Reply Last reply
            0
            • M Muammar

              I just came back from the park where I was coding peacefully and reading some cp articles, I had to take a break and I left a C# page open, before that, I had some m&ms scattered on the keyboard so I can have some while coding:), my one year old daughter was playing around and when I turned back to the laptop!!!! no m&ms, and even worse the code was like..

                 private void Color\_Levels()
                  {
                      for (int x = 0; x < tree\_Level.Nodes.Count; x++)
                      {
                          tree\_Level.Nodes\[x\].ForeColor = Color.Navy;
                          for (int y = 0; y < tree\_Level.Nodes\[x\].Nodes.Count; y++)
                          {fffffffffffffffffffffffffffffffffrrrrrrrrrrrrrrttttttttttttttttttttttttt333333333333
                              tree\_Level.Nodes\[x\].Nodes\[y\].ForeColor = Color.SlateGray;
                              for (int z = 0; z < tree\_Level.Nodes\[x\].Nodes\[y\].Nodes.Count; z++)
                                  tree\_Level.Nodes\[x\].Nodes\[y\].Nodes\[z\].ForeColor = Color.LightSteelBlue;
                          }
              

              ps. dont charge me for posting a code snippet in here;P Thank God I was there when she wanted to take the last one setting happily on the power button :laugh:


              Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #10

              She discovered the Visual Studio easter egg then. Type crap and get free M&Ms. Mmmmmmm Chocolate. (I assume she typed the tree_Level stuff in).;P

              Deja View - the feeling that you've seen this post before.

              M 1 Reply Last reply
              0
              • B Big Daddy Farang

                Muammar© wrote:

                Thank God I was there when she wanted to take the last one setting happily on the power button

                No, actually that would have fixed the problem, wouldn't it? I mean you obviously saved your work before you walked away from the computer, right? I never have these problems with peanut M&Ms. I'll bet you had plain, right? BDF

                M Offline
                M Offline
                Muammar
                wrote on last edited by
                #11

                Big Daddy Farang wrote:

                I never have these problems with peanut M&Ms. I'll bet you had plain, right?

                True:laugh:


                Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

                1 Reply Last reply
                0
                • P Pete OHanlon

                  She discovered the Visual Studio easter egg then. Type crap and get free M&Ms. Mmmmmmm Chocolate. (I assume she typed the tree_Level stuff in).;P

                  Deja View - the feeling that you've seen this post before.

                  M Offline
                  M Offline
                  Muammar
                  wrote on last edited by
                  #12

                  Pete O`Hanlon wrote:

                  Visual Studio easter egg

                  :)

                  Pete O`Hanlon wrote:

                  (I assume she typed the tree_Level stuff in).

                  :-D

                  Pete O`Hanlon wrote:

                  Type crap and get free M&Ms.

                  :laugh::laugh::laugh:


                  Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

                  1 Reply Last reply
                  0
                  • M Marc Clifton

                    I don't think she likes your choice of SlateGray and LightSteelBlue. Marc

                    Thyme In The Country
                    Interacx
                    My Blog

                    M Offline
                    M Offline
                    Muammar
                    wrote on last edited by
                    #13

                    Marc Clifton wrote:

                    I don't think she likes your choice of SlateGray and LightSteelBlue.

                    Maybe comparing to the m&ms colors;P


                    Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

                    1 Reply Last reply
                    0
                    • M Muammar

                      I just came back from the park where I was coding peacefully and reading some cp articles, I had to take a break and I left a C# page open, before that, I had some m&ms scattered on the keyboard so I can have some while coding:), my one year old daughter was playing around and when I turned back to the laptop!!!! no m&ms, and even worse the code was like..

                         private void Color\_Levels()
                          {
                              for (int x = 0; x < tree\_Level.Nodes.Count; x++)
                              {
                                  tree\_Level.Nodes\[x\].ForeColor = Color.Navy;
                                  for (int y = 0; y < tree\_Level.Nodes\[x\].Nodes.Count; y++)
                                  {fffffffffffffffffffffffffffffffffrrrrrrrrrrrrrrttttttttttttttttttttttttt333333333333
                                      tree\_Level.Nodes\[x\].Nodes\[y\].ForeColor = Color.SlateGray;
                                      for (int z = 0; z < tree\_Level.Nodes\[x\].Nodes\[y\].Nodes.Count; z++)
                                          tree\_Level.Nodes\[x\].Nodes\[y\].Nodes\[z\].ForeColor = Color.LightSteelBlue;
                                  }
                      

                      ps. dont charge me for posting a code snippet in here;P Thank God I was there when she wanted to take the last one setting happily on the power button :laugh:


                      Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

                      D Offline
                      D Offline
                      dontknowitall
                      wrote on last edited by
                      #14

                      Muammar© wrote:

                      fffffffffffffffffffffffffffffffffrrrrrrrrrrrrrrttttttttttttttttttttttttt333333333333

                      Fartie!

                      1 Reply Last reply
                      0
                      • M Muammar

                        BTW: I used to have 3 year old cat "he's dead now" and he used to walk on the keyboard sometimes while I'm in a bathroom break and most of the time he just steps on 3333333333333333333333333333333, I always thought he wanted to tell me something to do with 3 until he kicked the bucket;P


                        Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

                        R Offline
                        R Offline
                        Richard Jones
                        wrote on last edited by
                        #15

                        Muammar© wrote:

                        I always thought he wanted to tell me something to do with 3

                        A Dale Earnhart fan perhaps?:-D

                        "Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..." "There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups