give me small, funny ideas to script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • #1
    Banned
    FFR Simfile Author
    choof
    • Nov 2013
    • 8596

    give me small, funny ideas to script

    I'm talking dumb stuff like an infinite loop that prints out "ayyy lmao" in different colors, or easy problems to solve

    need to kill some time while I'm waiting for people to call me back
  • #2
    Digital Dancing!
    FFR Simfile Author
    FFR Music Producer
    rushyrulz
    • Feb 2006
    • 13109

    Re: give me small, funny ideas to script

    brute force a solution to the 8 queens puzzle.


    Comment

    • #3
      Banned
      FFR Simfile Author
      choof
      • Nov 2013
      • 8596

      Re: give me small, funny ideas to script

      you suck
      Last edited by choof; 11-21-2014, 12:28 PM.

      Comment

      • #4
        new hand moves = dab
        FFR Simfile Author
        dAnceguy117
        • Dec 2002
        • 10129

        Re: give me small, funny ideas to script

        Write an infinite loop that spits out a character in different spots horizontally in whatever terminal thing you're using.

        xxxxxxxxxx
        xxxxxxxxxx
        xxxxxxxxxx
        xxxxxxxxxx
        xxxxxxxxxx
        xxxxxxxxxx
        xxxxxxxxxx
        xxxxxxxxxx
        xxxxxxxxxx
        xxxxxxxxxx

        That kind of thing. I spent my whole time in math class doing stupid stuff with these on a TI-83 when I was in middle school, long before I knew anything about programming. Brings me back.

        Comment

        • #5
          Confirmed Heartbreaker
          FFR Simfile Author
          Wayward Vagabond
          • Jul 2012
          • 5873

          Re: give me small, funny ideas to script

          make an ascii poop generator

          Comment

          • #6
            lol happy
            FFR Simfile Author
            hi19hi19
            • Oct 2005
            • 12283

            Re: give me small, funny ideas to script

            Make a program that turns an image into Twitch chat-style unicode art (not basic ASCII)
            For example:


            into

            ░░░░▒▒░░░░░░░░░
            ░░░░▒█░░░░░░░░░
            ░░░▄▒▓█░░░░░░░░
            ░░█░█▒▒█▄░▀▀░░░
            ░░▒▓▐░▒░░█▀▄▀▀░
            ░▒▒█░▓░░▄▌▄░▀▄░
            ▒░░▒▓▓░▀▀▄░░▀█░
            ░░▒█▓▒▒█▀░░▀█░░
            ░░░░█▒▀░█▄▄░▀█░
            ░░░░█▒█░░░░░░░▌
            ░░░░▐▒▒▌░░░░░▄█
            ░░░░░█▒▀▄░░░▄░█
            ░░░░░▐▒▒▒▀▄░░█░
            ░░░░░░▀▄▒▒▒▀█░░
            ░░░░░░░░▀▀█▄█░░
            ░░░░░░░░░░▓█▒░░



            Here are your tools:
            ▓█▒░▀▄▌▐
            Last edited by hi19hi19; 11-21-2014, 12:58 PM.


            Comment

            • #7
              2 is poo
              FFR Simfile Author
              smartdude1212
              • Sep 2005
              • 6717

              Re: give me small, funny ideas to script

              Project Euler thanks bye.

              Comment

              • #8
                Banned
                FFR Simfile Author
                choof
                • Nov 2013
                • 8596

                Re: give me small, funny ideas to script

                i'm 2bad@math
                Last edited by choof; 11-21-2014, 01:06 PM.

                Comment

                • #9
                  Forum User
                  FFR Simfile Author
                  Kraezymann
                  • Sep 2003
                  • 1650

                  Re: give me small, funny ideas to script

                  Are you learning to code? Do you have much experience? Just curious.

                  I have always wanted to learn but I'm really bad at math and such too. I tried codeacademy but I haven't been on there in ages... agh. If I get enough time over a weekend I might go back and see what I can remember
                  Twitch | Stepping Stones 2! | Stepping Stones 3! | Stepping Stones 4!

                  Submit to this -

                  Comment

                  • #10
                    sausage
                    FFR Simfile Author
                    Xayphon
                    • Nov 2008
                    • 1632

                    Re: give me small, funny ideas to script

                    make a really trippy Mandelbrot set visualization !!
                    Last edited by Xayphon; 11-21-2014, 07:05 PM.

                    Comment

                    • #11
                      FFR Player
                      Destroy2777
                      • Aug 2013
                      • 101

                      Re: give me small, funny ideas to script

                      Write a program that continually outputs an animated train.



                      If you ever need more practice, one place I can point you to is HackerRank. It supports pretty much any language you might need, and has problems encompassing all varieties of problem and difficulty.

                      HackerRank is the market-leading coding test and interview solution for hiring developers. Start hiring at the pace of innovation!
                      Last edited by Destroy2777; 11-21-2014, 07:44 PM.

                      Comment

                      • #12
                        FFR Player
                        Zapmeister
                        • Sep 2012
                        • 483

                        Re: give me small, funny ideas to script

                        here's a little thing i tried doing once but abandoned it:

                        ever get the frustration where you walk into a mcdonald's, desperately eager for an egg and sausage mcmuffin, only to find that you can't get one because it's like 7 in the evening and mcdonald's don't do 24 hour breakfasts? yeah, i do. so whenever this happens i slip into a mild existential crisis and 2 thoughts flow into my mind. (1) why the hell does mcdonald's only serve breakfast between 6am and 10:30am? (2) if only i could catch a plane right now to travel across the planet i'd be able to get a mcdonald's breakfast before 6am tomorrow. but... where?

                        here's a list of latitudes, longitudes and timezones for major world cities. basically i want a function where you input your location and current time, and you get the location you should travel in order to get a mcdonald's sausage and egg mcmuffin as quickly as possible.

                        you may assume that mcdonald's breakfast menu opens between 6am-10:30am every day, ignore daylight savings, and that typical flight speed of a plane is 900 km/h. also you can take the formula for the distance in km between two points given their latitude and longitude to be:
                        if points 1,2 have coordinates (lat1, long1), (lat2, long2) then:
                        distance = 6371.01 * (acos((cos(lat1) * cos(lat2) * cos(long1 - long2)) + (sin(lat1) * sin(lat2))))


                        partial credit goes to this site for implementing it but there is a major bug in it that it disregards the fact that you can arrive somewhere and wait for the mcdonald's to open before walking into it. i wanted to create a fixed version myself but i was too lazy.
                        Last edited by Zapmeister; 11-21-2014, 07:52 PM.

                        Theorem: If you have a large enough number of monkeys, and a large enough number of computer keyboards, one of them will sight-read AAA death piano on stealth. And the ffr community will forever worship it. Proof Example

                        ask me anything here

                        mashed FCs: 329

                        r1: 5
                        r2: 4
                        r3: 6
                        r4: 8
                        r5: 3
                        r6: 5
                        r7: 15
                        final position: 4th

                        Comment

                        • #13
                          no
                          FFR Simfile Author
                          Fission
                          • Jan 2004
                          • 1850

                          Re: give me small, funny ideas to script

                          Originally posted by Kraezymann
                          I have always wanted to learn but I'm really bad at math and such too.
                          you don't need much math at all to make simple programs. it only matters when you are trying to optimize algorithms or designing your own.

                          Comment

                          • #14
                            Banned
                            FFR Simfile Author
                            choof
                            • Nov 2013
                            • 8596

                            Re: give me small, funny ideas to script

                            Originally posted by Zapmeister
                            here's a little thing i tried doing once but abandoned it:

                            ever get the frustration where you walk into a mcdonald's, desperately eager for an egg and sausage mcmuffin, only to find that you can't get one because it's like 7 in the evening and mcdonald's don't do 24 hour breakfasts? yeah, i do. so whenever this happens i slip into a mild existential crisis and 2 thoughts flow into my mind. (1) why the hell does mcdonald's only serve breakfast between 6am and 10:30am? (2) if only i could catch a plane right now to travel across the planet i'd be able to get a mcdonald's breakfast before 6am tomorrow. but... where?

                            here's a list of latitudes, longitudes and timezones for major world cities. basically i want a function where you input your location and current time, and you get the location you should travel in order to get a mcdonald's sausage and egg mcmuffin as quickly as possible.

                            you may assume that mcdonald's breakfast menu opens between 6am-10:30am every day, ignore daylight savings, and that typical flight speed of a plane is 900 km/h. also you can take the formula for the distance in km between two points given their latitude and longitude to be:
                            if points 1,2 have coordinates (lat1, long1), (lat2, long2) then:
                            distance = 6371.01 * (acos((cos(lat1) * cos(lat2) * cos(long1 - long2)) + (sin(lat1) * sin(lat2))))


                            partial credit goes to this site for implementing it but there is a major bug in it that it disregards the fact that you can arrive somewhere and wait for the mcdonald's to open before walking into it. i wanted to create a fixed version myself but i was too lazy.
                            in order to prepare myself for this wonderful and glorious idea, I purchased a sausage mcgriddle for breakfast today and promptly shit my brains out when I arrived at work, causing me to miss a scheduled maintenance

                            idea rejected

                            Comment

                            • #15
                              Digital Dancing!
                              FFR Simfile Author
                              FFR Music Producer
                              rushyrulz
                              • Feb 2006
                              • 13109

                              Re: give me small, funny ideas to script

                              do this one it's easy


                              Comment

                              Working...