Welcome To Snipplr


Everyone's Recent Snippets



1 ... 376 377 378 379 380 ... 553
I needed today to format the content differently according to the screen resolution of the user. So I thought that just by detecting the screen width using the screen.width property, I could change the stylesheet using jQuery. And so it was. Check th...
0 1431 posted 16 years ago by paulgrenwood
1 1832 posted 16 years ago by paulgrenwood
Though CSS3 standard includes the opacity property, but not every browser supports it, here’s the CSS trick for cross browser transparency.
2 1446 posted 16 years ago by paulgrenwood
Internet Explorer does not understand the min-height property but here’s the CSS trick to accomplish that in IE.
2 1396 posted 16 years ago by paulgrenwood
0 1276 posted 16 years ago by paulgrenwood
0 1197 posted 16 years ago by gpupo
CSS Attribute selectors are very powerful giving you many options to control styles of different elements e.g. you can add an icon based on the href attribute of the a tag to let the user know whether link points to an image, pdf, doc file etc.
0 1000 posted 16 years ago by paulgrenwood
In Snow Leopard, bash treats colors differently. All the color codes that are escaped with \e won't be recognized. The new escape sequence is \033. The list below works perfectly in Snow Leopard
0 1501 posted 16 years ago by AzizLight
One drawback: Removal of button leaves a small indent in first line of paragraph, probably an element:style DIV. Don't yet know how to get rid of that.
1 1208 posted 16 years ago by thesislab
Must be inside <body> tag
0 1534 posted 16 years ago by crs
1 1575 posted 16 years ago by thomasvdb
This plugin created in order to prepend() numbering to each matched element
1 1155 posted 16 years ago by chchrist
Helpful for remembering useful CURLOPT constants. Taken from an example in the php manual comments.
3 1719 posted 16 years ago by DrewDouglass
CGI
0 1228 posted 16 years ago by renatoelias
This a simple wrapper for cgi, write in php, use stdin for post, and query_string env, for get =)
0 1232 posted 16 years ago by renatoelias
0 1414 posted 16 years ago by hacker
0 1460 posted 16 years ago by hacker
usage: dgrep foo svn://my-svn-server/trunk/my-file.txt
0 2151 posted 16 years ago by hacker
usage: sgrep foo svn://my-svn-server/trunk/my-file.txt
0 1941 posted 16 years ago by hacker
I use this to activate basic forms for clients. Just make sure your form input names are named appropriately. Any inputs such as phone or fax that are separated into different inputs should have the same name.
1 1855 posted 16 years ago by dmautz1
as a note to self... in order to find it laters... This will only alter the value of fieldname if the conditions in the WHERE clause are met. With replace we only replace a certain string within fieldname with the replace_with string
1 1901 posted 16 years ago by iroybot
used to sort out empty music-files
0 1855 posted 16 years ago by 1b0t
0 1326 posted 16 years ago by 1b0t
0 1283 posted 16 years ago by wearetherock
Summarised snippet of Natbat's article: http://natbat.net/2009/Jun/10/styling-buttons-as-links/ Any link that that initiates an action, rather than just changing a page should semantically be a form with a submit button not a l ink. However you ca...
3 2370 posted 16 years ago by PeteW
Go to page, then place code in address bar and generated code will be shown in new window.
1 1922 posted 16 years ago by bionic
0 1369 posted 16 years ago by wearetherock
Put this into your ~/.bashrc script and you should see the Git/SVN status in your prompt if your working directory is a sandbox.
0 1850 posted 16 years ago by zingo
1 ... 376 377 378 379 380 ... 553