Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Heres how to use
print_r(browser_detection('full'));
We can also use this script
print "IP: ". $_SERVER['REMOTE_ADDR'].""; ### IP ADDRESS ##
print "Browser:" . $_SERVER["HTTP_USER_AGENT"].""; ## Browser
print "OS: ". $_ENV["OS"]; ### OS
8
1910
posted 19 years ago by mail_json
mran( float minimum_number , float maximum_number) (returns int)
1
1192
posted 19 years ago by mouseit101
Example: nice -n 10 date
priority for root: -20 (higher priority) .. 19 (lower priority)
priority for common users: 0..19
To list process and nice value: "ps -el"
1
2061
posted 19 years ago by yuconner
To move the content away from the background image apply "padding-left" to the "LI" element. In this case "0.6em" has been used. As with vertical alignment, list padding will be determined by the size of your image.
35
14490
posted 19 years ago by zensir
Resize a Popup to Fit an Image's Size
By Peter Todorov
February 10th 2003
Reader Rating: 9.1
If you're a Webmaster who has to deal with image galleries, then make a note of this clever script. It gives you a solution to a very common problem --...
1
1934
posted 19 years ago by zensir
setPropertyã—ãŸã‚ªãƒ–ジェクトã¯ã€Groovyã‹ã‚‰å®£è¨€æ¸ˆã¿ã®å¤‰æ•°ã¨ã—ã¦å‚ç…§ã§ãる。
1
1723
posted 19 years ago by yoshimov
Rendererを作るã‹JTable#prepareRendererをオーãƒãƒ¼ãƒ©ã‚¤ãƒ‰ã™ã‚‹ã€‚オーãƒãƒ¼ãƒ©ã‚¤ãƒ‰ã®ã»ã†ãŒæ±Žç”¨çš„ã«ä½¿ãˆã¦æ¥½ã€‚
0
1506
posted 19 years ago by yoshimov
Uses the Luhn formula to quickly validate a credit card. Basically all the digits except for the last one are summed together and the output is a single digit (0 to 9). This digit is compared with the last digit ensure a proper credit card number is...
2
1732
posted 19 years ago by savageideas