Welcome To Snipplr


Everyone's Recent Snippets



1 ... 379 380 381 382 383 ... 553
/!\Notice: Change the ci_dir to wherever your ci folder is on line 3. /!\ Usage: ci [name of project] Gives the project a name based on the current date if the user didn't provide one. Option to move the app directory outside of the system dire...
2 1628 posted 16 years ago by AzizLight
3 1620 posted 16 years ago by jb3622
i know these regex stuff is rather slow, but still i like having slim documents. (don't forget to use gzip compression on all text docs)
3 1443 posted 16 years ago by iroybot
0 979 posted 16 years ago by wearetherock
0 1247 posted 16 years ago by arpit
base css for flash 100% width min size that works in ff3+, safari3+, google chrome 1+ Remember to use a reset.css: the margin / padding of html and body must be zero.
1 1243 posted 16 years ago by mcarneiro
This regular expression will match almost all valid email addresses. Omits email addresses containing double-quotes and square brackets, which while valid according to [RFC 2822][rfc2822], are almost never used. [rfc2822]: http://tools.ietf.org/ht...
2 1570 posted 16 years ago by chrisdpratt
To make the menu work in IE6 (which doesn't support the :hover pseudo element on anything but links and tables), the IE6-specific CSS calls on [Whatever:hover][whatever]. If using [Dean Edwards' IE7-js][IE7-js], this is unnecessary as his script fixe...
4 1556 posted 16 years ago by chrisdpratt
Functions to make using regular expressions a bit easier. They're named after the respective PHP function.
2 1607 posted 16 years ago by wizard04
Checks if an array has been initialized, even if it is a dynamic array.
1 1432 posted 16 years ago by wizard04
jQuery is included via the Google AJAX Libraries repository. Dean Edwards' IE7-js is included via it's Google Code hosting URL. Version numbers of both libraries should be checked and updated to latest versions. _**Note:** While libraries can be r...
0 1757 posted 16 years ago by chrisdpratt
XHTML 1.0 Strict deprecates the use of iframes in favor of objects. While this has gotten a lot of flack, iframes were never truly a part of HTML, just a proprietary element in Internet Explorer that eventually got universal support. Objects are a mo...
0 1513 posted 16 years ago by chrisdpratt
2 1406 posted 16 years ago by KF
This source code based on the "friend" example given with Persevere. It is a simple Twitter-like microblogging program. Note that you need to create a class definition file in "WEB-INF\jslib\tweet.js" for it to work.
0 1244 posted 16 years ago by rolytyler
I grabbed this code from here in order to make IE 8 behave like IE 7 for me. It sure is a heck of a lot easier than going back through all the CSS on every site I've ever done. Just drop it in the header, hopefully you have a header include.
4 1480 posted 16 years ago by takonia
Attaching multiple stylesheets
0 888 posted 16 years ago by StevieJ
<pre> To compile $ gcc -lXtst -lX11 Util_KeyPressSimulator.c To create shared library $ gcc -lXtst -lX11 -c Util_KeyPressSimulator.c -o Util_KeyPressSimulator.o $ gcc -lXtst -lX11 -shared -o Util_KeyPressSimulator.so Util_KeyPressSimulator.o...
0 1321 posted 16 years ago by wearetherock
This depends on [bibout](http://snipplr.com/view/19515/bibout/). In TextMate, set $TM_LATEX_BIB to point to your bibtex file, and create a Preference file in your markdown (or pandoc) bundle, containing the first line of the snippet. Create another P...
0 2002 posted 16 years ago by dsanson
0 2531 posted 16 years ago by powerserve
Puts a red border around anything with an inline style. Prefix with "javascript:" and paste into the address bar to run on a page directly, or run with a load event.
1 1219 posted 16 years ago by DaveChild
1 ... 379 380 381 382 383 ... 553