Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Hay dos maneras, la mejor es usar el script manager, tambien ver la diferencia entre
http://forums.asp.net/t/902895.aspx
0
3334
posted 16 years ago by ramirocalero
For several reasons, including portability, reducing download size, and general code neatness, I like to make all links within a website root relative.
0
1739
posted 16 years ago by weboholic
Will help convert string to number OR get number in a selected string.
0
2053
posted 16 years ago by carbonr
Turns /n to <br> and /n/n to </p><p>
Usage:
echo stripslashes(nl2br(nls2p($text)));
0
1915
posted 16 years ago by jmiller
The script below connects to a MySQL database server on "localhost" using the login name "test" and password "123456" and then connects to the database "test". It then copies the table structure and data from the table "products" to a new table "prod...
4
3872
posted 16 years ago by fackz
This regular expression used in Ruby will extract the characters between single or multi-character delimiters. It helps when you have strange delimiters such as \":delimeter1: text I want to grab goes here :delimiter2:\"
0
2239
posted 16 years ago by webonomic
Open your search.php file and find the the_title() function. Replace it with the following:
1.echo $title;
Save the search.php file and open style.css. Append the following line to it:
strong.search-excerpt { background: yellow; }
0
1772
posted 16 years ago by newsok
From:
http://stackoverflow.com/questions/1169927/using-sed-and-grep-to-search-and-replace
0
1904
posted 16 years ago by edeustace
This is source I created from a project currently in development.
0
2175
posted 16 years ago by chrislorenz
Of course, you don't have to set the width to 50%. Any width less than the containing div will work. The margin: auto is what does the actual centering.
1
2347
posted 16 years ago by alozuldo
This code war written for a project I'm working on where a map of the world may need to be offset to center the view on specific areas. I'm also using it as a part of an iterative blur function to prevent seams from the blur operation.
I would lik...
0
2071
posted 16 years ago by Jamie