School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Welcome to Dream.In.Code
Become an Expert!

Join 307,089 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,157 people online right now. Registration is fast and FREE... Join Now!



's Contributions
Below are the tutorials, code snippets, and resources has submitted to dream.in.code. For more information on Kudos and contributing to dream.in.code visit: http://home.dreamincode.net/?p=about#kudos.
Tutorials
No Tutorials Submitted.
Code Snippets
Submitted: July 18, 2009        Views: 73
This function finds the average of all numbers provided. You can pass as many numbers you want to the function. It can take an arbitrary number of numbers. Demonstrates the usage of optional parameters. The function is also purely functional (referentially transparent). It will always return the the same value given the same arguments.
Submitted: October 4, 2009        Views: 25
This snippet opens up the String class and defines 3 methods in the String class. A method to count the number of vowels in as string, words in a string, and the number of time a letter occurs in a string.
Submitted: June 13, 2009        Views: 97
See file header. To add, this library demonstrates the structure of a Haskell library, comments, declaring an algebraic data type with record syntax, using that data type all throughout the library, list manipulation, file manipulation (on a small scale), exportation, function composition and point-free style.
Submitted: July 10, 2009        Views: 115
This snippet defines a Clojure var that holds a mutable reference (ref) to a set. It shows an example of using that ref to greet users of the function depending on the name they supplied as it's argument. Refs are an extremely important part of Clojure's currency.
Submitted: May 14, 2009        Views: 224
This snippet defines an abstract class for a small tamagotchi-style game. It follows a pattern usually used in text-based games. It's easily recognizable, and probably even reusable with slight modification.
Submitted: March 25, 2009        Views: 864
This library can be used to read simple configuration files which have a key = value format into a map and then used in the program. You can parse the map back to the file when finished, doing so will reflect any changes you have made to the map back to the file. You can add or remove key = value pairs.
Submitted: July 10, 2009        Views: 180
This function will find the largest number in a Clojure sequence. Note that there is a standard library function max that does close to the same thing. It can be used to do the same thing as this by doing (apply max coll).
Submitted: May 17, 2009        Views: 157
Bad juju, that's what it does. Be careful how you use this strange, dangerous power, for the Haskell community could exile you for using it wrong! :p
Submitted: March 19, 2009        Views: 406
This snippet creates a fully functional calculator with a simple GUI using the Swing GUI toolkit.
Submitted: April 21, 2009        Views: 77
This snippet uses a for clause to solve project euler problem one. It demonstrates the use of for clauses, and equality checks, logical OR's, method calls, and function literals.