give me small, funny ideas to script

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

    #1

    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
  • rushyrulz
    Digital Dancing!
    FFR Simfile Author
    FFR Music Producer
    • Feb 2006
    • 12985

    #2
    Re: give me small, funny ideas to script

    brute force a solution to the 8 queens puzzle.


    Comment

    • choof
      Banned
      FFR Simfile Author
      • Nov 2013
      • 8563

      #3
      Re: give me small, funny ideas to script

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

      Comment

      • dAnceguy117
        new hand moves = dab
        FFR Simfile Author
        • Dec 2002
        • 10097

        #4
        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

        • Wayward Vagabond
          Confirmed Heartbreaker
          FFR Simfile Author
          • Jul 2012
          • 5866

          #5
          Re: give me small, funny ideas to script

          make an ascii poop generator

          Comment

          • hi19hi19
            lol happy
            FFR Simfile Author
            • Oct 2005
            • 12194

            #6
            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, 11:58 AM.


            Comment

            • smartdude1212
              2 is poo
              FFR Simfile Author
              • Sep 2005
              • 6687

              #7
              Re: give me small, funny ideas to script

              Project Euler thanks bye.

              Comment

              • choof
                Banned
                FFR Simfile Author
                • Nov 2013
                • 8563

                #8
                Re: give me small, funny ideas to script

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

                Comment

                • Kraezymann
                  Forum User
                  FFR Simfile Author
                  • Sep 2003
                  • 1640

                  #9
                  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

                  • Xayphon
                    sausage
                    FFR Simfile Author
                    • Nov 2008
                    • 1630

                    #10
                    Re: give me small, funny ideas to script

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

                    Comment

                    • Destroy2777
                      FFR Player
                      • Aug 2013
                      • 90

                      #11
                      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, 06:44 PM.

                      Comment

                      • Zapmeister
                        FFR Player
                        • Sep 2012
                        • 466

                        #12
                        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, 06: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

                        • Fission
                          no
                          FFR Simfile Author
                          • Jan 2004
                          • 1850

                          #13
                          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

                          • choof
                            Banned
                            FFR Simfile Author
                            • Nov 2013
                            • 8563

                            #14
                            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

                            • rushyrulz
                              Digital Dancing!
                              FFR Simfile Author
                              FFR Music Producer
                              • Feb 2006
                              • 12985

                              #15
                              Re: give me small, funny ideas to script

                              do this one it's easy
                              A website dedicated to the fascinating world of mathematics and programming


                              Comment

                              Working...
                                Notice: Function utf8_encode() is deprecated in phar://.../vb/vb.phar/mail/transport/legacy.php on line 2 Notice: Function utf8_encode() is deprecated in phar://.../vb/vb.phar/mail/transport/legacy.php on line 2 Warning: Undefined variable $username in phar://.../vb/vb.phar/mail/transport/legacy.php on line 2 Notice: Function utf8_encode() is deprecated in phar://.../vb/vb.phar/mail/transport/legacy.php on line 2 Notice: utf8_encode(): Passing null to parameter #1 ($string) of type string is deprecated in phar://.../vb/vb.phar/mail/transport/legacy.php on line 2 Notice: Function utf8_encode() is deprecated in phar://.../vb/vb.phar/mail/transport/legacy.php on line 2