RetardedGenius's Contributions
Below are the tutorials, code snippets, and resources RetardedGenius 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
Code Snippets
Submitted: May 14, 2011        Views: 1009
Function which takes a number of any base between 2 and 16, represented as a string, and returns its denary (base 10) equivalent. This snippet is intended to complement: http://www.dreamincode.net/code/snippet6102.htm
Submitted: April 30, 2011        Views: 1258
Function which, given base 10 integer, returns a string representation of the same number, in any base between 2 and 16.
Submitted: May 19, 2011        Views: 2077
This function tests a number for primality. It is designed to be small and clear to understand, but also efficient for both memory and processor usage. The algorithm used works on the observation that all primes, > 3, of the form 6k ± 1.
Submitted: December 8, 2011        Views: 1851
This class is a simple, high-resolution stopwatch for timing theexecution of C++ programs in a Windows eviroment. This class emulates the Stopwatch class of the .NET framework and uses the Windows API to time events. Its precision is much greater than any implementations that use the library. Feel free to modify and use this code as you see fit. :) QueryPerformanceCounter() represents the number of ticks that have occured since system start-up. With a capacity of 2^64, you won't have to worry about the tick counter overlapping; not unless you keep you computer on for tens of thousands of years!
Submitted: June 4, 2011        Views: 1228
Two functions that calculate the Pixels Per Inch and Pixel Pitch of a computer monitor. These are useful measurements when comparing computer monitors.
Stylish Menu in HTML/CSS by RetardedGenius
Submitted: July 20, 2011        Views: 1476
This is a stylish and semantic menu created using some of the new features of CSS, it doesn't use any images or javascript.