Go Back   Flash Flash Revolution > General Discussion > Chit Chat
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
Old 11-21-2014, 11:58 AM   #1
choof
Banned
Retired StaffFFR Simfile AuthorD7 Elite KeysmasherFFR Veteran
 
Join Date: Nov 2013
Posts: 8,563
Default 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
choof is offline   Reply With Quote
Old 11-21-2014, 12:14 PM   #2
rushyrulz
Digital Dancing!
Retired StaffFFR Simfile AuthorFFR Music ProducerD7 Elite KeysmasherFFR Veteran
 
rushyrulz's Avatar
 
Join Date: Feb 2006
Location: 80 billion club, NE
Age: 31
Posts: 12,981
Default Re: give me small, funny ideas to script

brute force a solution to the 8 queens puzzle.
__________________


rushyrulz is offline   Reply With Quote
Old 11-21-2014, 12:28 PM   #3
choof
Banned
Retired StaffFFR Simfile AuthorD7 Elite KeysmasherFFR Veteran
 
Join Date: Nov 2013
Posts: 8,563
Default Re: give me small, funny ideas to script

you suck

Last edited by choof; 11-21-2014 at 12:28 PM..
choof is offline   Reply With Quote
Old 11-21-2014, 12:35 PM   #4
dAnceguy117
new hand moves = dab
FFR Simfile AuthorFFR Veteran
 
dAnceguy117's Avatar
 
Join Date: Dec 2002
Location: he/they
Age: 33
Posts: 10,094
Default 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.
dAnceguy117 is offline   Reply With Quote
Old 11-21-2014, 12:52 PM   #5
Wayward Vagabond
Confirmed Heartbreaker
Retired StaffFFR Simfile AuthorFFR Veteran
 
Wayward Vagabond's Avatar
 
Join Date: Jul 2012
Age: 35
Posts: 5,859
Default Re: give me small, funny ideas to script

make an ascii poop generator
__________________
Wayward Vagabond is offline   Reply With Quote
Old 11-21-2014, 12:57 PM   #6
hi19hi19
lol happy
Retired StaffFFR Simfile AuthorFFR Veteran
 
hi19hi19's Avatar
 
Join Date: Oct 2005
Location: DESTINY
Age: 33
Posts: 12,193
Default 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 at 12:58 PM..
hi19hi19 is offline   Reply With Quote
Old 11-21-2014, 01:03 PM   #7
smartdude1212
2 is poo
FFR Simfile AuthorD7 Elite KeysmasherFFR Veteran
 
smartdude1212's Avatar
 
Join Date: Sep 2005
Age: 32
Posts: 6,687
Default Re: give me small, funny ideas to script

Project Euler thanks bye.
smartdude1212 is offline   Reply With Quote
Old 11-21-2014, 01:06 PM   #8
choof
Banned
Retired StaffFFR Simfile AuthorD7 Elite KeysmasherFFR Veteran
 
Join Date: Nov 2013
Posts: 8,563
Default Re: give me small, funny ideas to script

i'm 2bad@math

Last edited by choof; 11-21-2014 at 01:06 PM..
choof is offline   Reply With Quote
Old 11-21-2014, 04:37 PM   #9
Kraezymann
Forum User
FFR Simfile Author
 
Kraezymann's Avatar
 
Join Date: Sep 2003
Location: Saskatchewan, Canada
Age: 35
Posts: 1,640
Send a message via MSN to Kraezymann
Default 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 -
Kraezymann is offline   Reply With Quote
Old 11-21-2014, 07:03 PM   #10
Xayphon
sausage
FFR Simfile AuthorD7 Elite KeysmasherFFR Veteran
 
Xayphon's Avatar
 
Join Date: Nov 2008
Location: Germany
Posts: 1,630
Default Re: give me small, funny ideas to script

make a really trippy Mandelbrot set visualization !!

Last edited by Xayphon; 11-21-2014 at 07:05 PM..
Xayphon is offline   Reply With Quote
Old 11-21-2014, 07:43 PM   #11
Destroy2777
FFR Player
FFR Veteran
 
Destroy2777's Avatar
 
Join Date: Aug 2013
Posts: 90
Default 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.

https://www.hackerrank.com/

Last edited by Destroy2777; 11-21-2014 at 07:44 PM..
Destroy2777 is offline   Reply With Quote
Old 11-21-2014, 07:47 PM   #12
Zapmeister
FFR Player
 
Join Date: Sep 2012
Location: England
Posts: 466
Default 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.
__________________

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

Last edited by Zapmeister; 11-21-2014 at 07:52 PM..
Zapmeister is offline   Reply With Quote
Old 11-21-2014, 09:02 PM   #13
Fission
no
Simfile JudgeFFR Simfile AuthorFFR Veteran
 
Fission's Avatar
 
Join Date: Jan 2004
Age: 33
Posts: 1,850
Default Re: give me small, funny ideas to script

Quote:
Originally Posted by Kraezymann View Post
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.
Fission is offline   Reply With Quote
Old 11-24-2014, 12:47 PM   #14
choof
Banned
Retired StaffFFR Simfile AuthorD7 Elite KeysmasherFFR Veteran
 
Join Date: Nov 2013
Posts: 8,563
Default Re: give me small, funny ideas to script

Quote:
Originally Posted by Zapmeister View Post
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
choof is offline   Reply With Quote
Old 11-24-2014, 05:23 PM   #15
rushyrulz
Digital Dancing!
Retired StaffFFR Simfile AuthorFFR Music ProducerD7 Elite KeysmasherFFR Veteran
 
rushyrulz's Avatar
 
Join Date: Feb 2006
Location: 80 billion club, NE
Age: 31
Posts: 12,981
Default Re: give me small, funny ideas to script

do this one it's easy
https://projecteuler.net/problem=14
__________________


rushyrulz is offline   Reply With Quote
Old 11-24-2014, 05:55 PM   #16
rayword45
Local Teenage Wastebasket
FFR Simfile AuthorD7 Elite KeysmasherFFR Veteran
 
rayword45's Avatar
 
Join Date: Feb 2007
Location: My bed
Age: 26
Posts: 3,191
Default Re: give me small, funny ideas to script

a program where you enter a number and a letter and get a corresponding photo of tits
__________________
The above post has a 50% chance of being useless. Potentially. Maybe.

BEST AAAs: WANDERLUST, Pandora, Necropotence, Mourning The Lost, Eradication, Feldschlacht

Hey, we need some users on this site. Please join.

And if you have not recommended any albums yet, do so. Please. I have a goal to reach. Here.
NO WAIT THAT SHIT'S OLD GO HERE INSTEAD.
rayword45 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 07:39 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright FlashFlashRevolution