Show a confirmation dialog upon submitting a dialog by using a standard button with a little JavaScript instead of a typical submit button.
Rotate Array in JavaScript
A function for rotating arrays to the right or to the left, any number of times.
Extract Age from Birth Date
A Ruby function for extracting one’s age by passing in the birth date as a parameter.
Zoom div by percentage using CSS
This little example mark-up shows you how to zoom in a div by a specific percentage using only CSS.
Drop-down list of countries
A complete list of countries, alphabetically ordered, with the most popular selections at the top, ready to be used in any HTML page.
Minesweeper Game In Java
A fully functional Minesweeper game in Java that is similar to the one bundled with Windows, and that can be easily enhanced.
Get Velocity And Position Of A Projectile
Use Java, physics and simple math to calculate the position of a projectile at a given time and its velocity.
Using Sockets To Retrieve Data Through HTTP
Use the Java Socket object and the BufferedReader to retrieve the response of an HTTP web request.
Find The Greatest Common Divisor
Implement the Euclidean algorithm into a Python function in order to calculate the largest common divisor of two numbers.
Count Words In String
The simplest way to count words in a string using Ruby and regular expressions by splitting the string at each space.