Code Snippets by mountaindew
(41)
This is a Swing java program that uses the
This is a BreakOut game made in Java. You start off by hitting "Play Game" and then click to release the ball. The more bricks you hit, the more points you get.
as long as you have the..
This is a Pong game applet that I made in Java. It's player vs. computer, and the computer never loses. You just move the mouse up and down to control your paddle. I'd like to figure out how to change..
This is a word scramble game that I made in java. A scrambled word comes up and you have to try and guess it. You just have to put a list of words in words.txt inside the same directory as the project...
This is a method for Java that scrambles up a string. You just add it to your class and call it by doing
* variable = scramble(variable);
* System.out.println(scramble("elephant"));
This is an 8ball made in Java. Just type in a question and it'll generate a random response.
This is my first Java snippet. It simply converts Celsius to Fahrenheit and Fahrenheit to Celsius. Input a temperature and it'll give you both conversions. It basically demonstrates input and output..
I was bored so I made a thesaurus for mIRC.
To launch it you either type /thesaurus or right click a window and hit "Thesaurus".
Just type in a word and it'll look up the synonyms and antonyms..
So this is a C++ snippet that calculates the slope, midpoint, and distance for two points. You just enter x1, y1, x2, and y2, and it'll show the output.
This is a snippet that finds the standard deviation of a set of numbers.
$stdev(3 7 7 19) --> 6
I guess you could also use the $mean identifier if you wanted, $mean(N N N N).
This is a console Tic Tac Toe game made with C++.
It's a two player game, and you type in the number for the space you want to put your letter in.
I'm sure the code could be improved a lot, this..
I began learning C++ today, and this is my first snippet. It's a temperature converter.
Then you type in the temp and it gives you the conversion.
So this script searches for images throughout Hawkee. It can sort by Latest, Recently Liked, Most Liked, or Most Commented.
So this is just a quick snippet I made, it checks the status of someone on AIM. You type /aim
So this is just a little acronym finder. You right click and hit "Acronym Finder" to open up the dialog, and you type in the acronym and click search. For example, you type in "BBL"..
This morning I was just playing around with my iPod and was just fooling around in Stocks. Then I thought "Wow, that's a great idea for a script", so here it is
This is just a quick snippet I made that searches through the Price Comparison here on Hawkee. It returns the Product name, Brand, Price, and URL.
This snippet searches for other snippets from Hawkee. You can search through all of them, or specify a category.
I made this simple SpellChecker today. It's pretty obvious what it does, it checks if a word is spelled right, and if not, it gives suggestions.
Syntax:
This is a translator script that I made, it uses
This here is a YouTube video searcher. It returns the first three videos of your search result.
It returns the Title, Date Added, User, Length, Views, Rating, and URL for each video.
Syntax:
Well, this is my first sockets script
This is a timer that counts up until 60 minutes in NN:NN format.
Ex: 24:30
» Make a "timer1" and set the interval as 1000
» For the timer, make a "label1" and label it "00:00"
»..
This is an identifier than finds the average of a set of numbers.
Syntax: $avg(N.N.N.N,C)
N = numbers
. = delimeter
C = delimeter #
Ex:
$avg(1 5 2 1 6,32) » 3
$avg(2|4|6|8,124) » 5
$avg(1.1.1.1,46)..
Finally done rewriting it!
*View Hash Tables
*Add/Remove Hash Tables and Items
*Edit Data
Enjoy, put in remotes, type /file or right click and click the menu to start it up