Below are the top ranked snippets.
5
6
Convert
java.awt.Canvas to java.awt.image.BufferedImage or java.awt.image.Image
java.awt.Canvas to java.awt.image.BufferedImage or java.awt.image.Image
7
lavaramano
how to remove a string from a plain text using just grep.
6
lavaramano
how to sort words separated by a ','.
5
how to handle arrays in bash
6
it give us the position of the mouse. works on IE and Firefox
use:
onclick="posicion_mouse(event)"
use:
onclick="posicion_mouse(event)"
6
Returns the keycode of the key we wrote on a textarea/input. works on IE and Firefox
7
Returns an array with all the objects with certain class. tested on IE 6 and Firefox 2
5
AJAX based submit form and use PHP to get results...
Very easy to use and understand, hope you will find it useful and easily edit it to fit your needs.
Very easy to use and understand, hope you will find it useful and easily edit it to fit your needs.
6
Function that you can use to extract the ID from YouTube links that
look like this:
http://www.youtube.com/watch?v=Fv2aS8YtpmU
http://www.youtube.com/vi/Fv2aS8YtpmU
http://www.youtube.com/?v=Fv2aS8YtpmU
and you can extract this "Fv2aS8YtpmU" so you can use it to get thumbnails that look like : http://img.youtube.com/vi/[videoid]/default.jpg
look like this:
http://www.youtube.com/watch?v=Fv2aS8YtpmU
http://www.youtube.com/vi/Fv2aS8YtpmU
http://www.youtube.com/?v=Fv2aS8YtpmU
and you can extract this "Fv2aS8YtpmU" so you can use it to get thumbnails that look like : http://img.youtube.com/vi/[videoid]/default.jpg









