mountaindew commented on C++ Snippet: Calculator Program: Percent of Error  -  Sep 30, 2010
It's [ quote ]stuff you're quoting[ /quote ] or [ code ]int x = 3;[ /code ] (without spaces).
mountaindew commented on C++ Snippet: Calculator Program: Percent of Error  -  Sep 30, 2010

Quote


I put the Platform as C++ Because i don't know what this code language is.

It's actually TI-BASIC which derives from BASIC.

I have a TI-89 but I've never programmed anything on it, I don't think I'd have the patience of writing it on the calculator (I don't have a USB for it).

The only thing I've done is custom functions, like slope(), dist(), midpoint(), stuff like that.
mountaindew commented on mIRC Snippet: Trivia  -  Aug 12, 2010
I believe it has to be whatever $asc(|) is, I donno why I made it like that...
mountaindew commented on mIRC Snippet: Hawkee Snippet Search  -  Aug 01, 2010
Updated the script, thanks FordLawnmower.
mountaindew commented on Java Snippet: Maplet and JDBC  -  Jul 22, 2010
It'd probably be better for you to add this as a script.
mountaindew commented on mIRC Snippet: Trivia  -  Jun 30, 2010
Umm I know you'd have to edit this part:

Code

 

But I'm not exactly sure how you'd give a hint for every four letters or w/e you're requesting.

And you'd have to modify the dialog...it's probably more trouble than it's worth.
mountaindew commented on mIRC Snippet: Trivia  -  Jun 29, 2010
Thanks for helping him with that Jethro
mountaindew commented on Visual Basic Snippet: Magic 8ball :).  -  Jun 20, 2010
I believe it's "Randomize", not "Randomise".
mountaindew commented on Java Snippet: Bomb Game  -  Jun 09, 2010
Couple tips:

Code

 

Why not declare and initialize them in the same line?

Code

 

And with,

Code

 

You can use \n in a string to skip a line, so you could do:

Code

 

Haven't tested your code but looks like a nice simple game.

Edit:

Quote


Works in the essence, you'll have to type the color of the wire exactly to have a chance at winning..(eg. if the wire is called "Blue" it wont accept "blue") java's pro regex for ya -.-

Just noticed this in the intro, you can correct that by using:

Code

 


As for restarting the program, a simple way to do it would be to put the playing part in while (true) { } and then when you win/lose you can ask if they wanna play again and input a string, and if no, just return;.
mountaindew commented on C++ Snippet: ArrayCopy  -  May 26, 2010

Code

 

I'm no C++ expert but can't you just get somesize1 and somesize2 from the given arrays?

Edit: found this on google

Code

 
mountaindew commented on Snippet: Coding Contest Begin - ROT13 Function  -  May 18, 2010
Language: Java
Syntax: System.out.println(ROT13("tHiS iS a TeSt.;'"));

Code

 

Edit: Hawkee, you should have text formated in [ code] tags be syntax-colored like snippets.
mountaindew commented on Snippet: Coding Contest Begin - ROT13 Function  -  May 14, 2010
Language: Objective-C
Usage: NSLog(@"%@", [self ROT13:@"tHiS iS a TeSt.,;'"]);

Code

 

I wrote it in Objective-C but as you may notice, most of it is pretty much C, since char is primitive from C.

I like this idea btw, it's cool seeing how the same function is coded in different languages.
mountaindew commented on Java Snippet: Encryptor/Decryptor (Caesar Cipher)  -  Mar 29, 2010
Well I did, but this is like really simple encryption:

Code

 

I'm not really sure how you'd go about coding a more complex encryption.
mountaindew commented on Java Snippet: Encryptor/Decryptor (Caesar Cipher)  -  Mar 29, 2010
I'm not really sure if I'd be able to help you with that, I don't know very much about encryption.
mountaindew commented on mIRC Snippet: YouTube Video Searcher  -  Mar 23, 2010
Yea I'm sure the source code has changed many times...

I don't have mIRC anymore, so if anyone feels like fixing it feel free.
mountaindew commented on Python Snippet: Python 8ball script  -  Oct 20, 2009
Not commenting doesn't make something messy, it's a simple set of if statements, pretty self-explanatory...
mountaindew commented on .NET Snippet: 8ball in Visual basic  -  Oct 19, 2009
You can just do Do...Loop, no real need for the x var.
mountaindew commented on .NET Snippet: Simple multiplication table  -  Oct 15, 2009
He was referring to his previous comment:

Quote


Just fyi; you can use

Code

 

instead of

Code

 

sometimes it's a little easier, your choice really though
mountaindew commented on .NET Snippet: Simple multiplication table  -  Oct 13, 2009
I believe tablenum is being dimmed as a variant since you didn't specify a type, unless that's different in .NET than VB6. Looks like they should be integers too:

Code

 

And rather than doing the Do...Loop Until 1 = 2, you can just do Do...Loop
mountaindew commented on Java Snippet: BreakOut Applet  -  Sep 04, 2009
I'm not sure about drjava, but it should pretty much be the same as I did in JCreator. Make an applet project and have two files: one for the main coding (BreakOut.java) and one for the brick properties (brick.java).
mountaindew commented on Java Snippet: Encryptor/Decryptor (Caesar Cipher)  -  Aug 03, 2009

Quote


ehh
if you wanna bitch about someone do it in pm ;) lol

What are you talking about?
mountaindew commented on mIRC Snippet: Minesweeper  -  Jul 27, 2009
Nice job, I'm nasty at minesweeper :)

I just wish that the numbered tiles were indented in like the blank spaces, because they kind of blend in with the unclicked blocks.

Edit: I did /mines 20 m and looks like it's a little buggy



(There's some dots above the board and where I lost, the numbers were wrong.)
mountaindew commented on mIRC Snippet: Anti-Poker  -  Jul 17, 2009
Shouldn't it be

Code

 
mountaindew commented on Java Snippet: Encryptor/Decryptor (Caesar Cipher)  -  Jul 17, 2009
Yeah that's mainly why I did it, to get some practice with Swing and the layout managers.
mountaindew commented on mIRC Snippet: Random FML Script  -  Jul 06, 2009
k0ji, to the top of the on text add:

Code

 
mountaindew commented on Java Snippet: Magic 8 Ball  -  Jul 02, 2009

Code

 

Instead of printing with a \n at the end why not just do println?
mountaindew commented on mIRC Snippet: Random FML  -  Jun 28, 2009
Someone should use their API and make a full blown FML script.
mountaindew commented on mIRC Snippet: Punch someone  -  Jun 26, 2009
You're welcome, and:

Quote


@Slickone: what do "." infront of timers actually do, and why name them?

If you just have "timer", you'll see the status window filling up with lines like "timer initialized" or something like that. If you do .timer you won't get any of that.
mountaindew commented on mIRC Snippet: Punch someone  -  Jun 26, 2009
To join the $2 and ! do

Code

 

$+ joins two things together.
mountaindew commented on mIRC Snippet: lovecalc  -  Jun 25, 2009
Why not just do

Code

 
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. Next
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.