jQuery – Center DIV vertically and horizzontally with Jquery
$(document).ready(function(){ $(window).resize(function(){ $('.centered').css({ position:'absolute', left: ($(window).width() – $('.centered').outerWidth())/2, top …
View ArticlejQuery – Use jQuery to display an image alt tag as a caption overlay
Loop through all the images in a given container, grab their alt tags if they are not empty, and then create an overlay in a span tag that will be positioned on the bottom corner of the each image.
View ArticleJavaScript – Get user location using the browser GeoLocation features.
In browsers that support geocoding, the geolocation API is exposed in Javascript as a member of the navigator object navigator.geolocation, here it is a snippet on how to use such feature to geo tag...
View ArticleC – Project a 3D vertex [X,Y,Z] object to a 2D [X,Y] point.
This little function could help you if you want to transform a 3D point ( vertex ) to a 2D space point ( from a [x,y,z] vector to [x,y] ), for instance to print a 3D object, which is just a set of...
View ArticlePython – A-Star ( A* ) search algorithm implementation
In computer science, A* (pronounced "A star") is a computer algorithm that is widely used in pathfinding and graph traversal, the process of plotting an efficiently traversable path between points,...
View ArticleHTML – Create Windows Phone 8 Tile for your Site
This code allows you to add to the main screen of the smartphone Windows Phone 8 a "tile" to your site.
View Article
More Pages to Explore .....