Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Taken from http://ubuntuforums.org/showthread.php?t=255556
0
1406
posted 15 years ago by sergeygerasimov
as3query written by nitoyon. http://tech.nitoyon.com/blog/2008/01/as3query_alpha.html
Package download: http://bit.ly/as3query
0
1466
posted 15 years ago by adamcoulombe
as3query written by nitoyon. http://tech.nitoyon.com/blog/2008/01/as3query_alpha.html
Package download: http://bit.ly/as3query
0
1308
posted 15 years ago by adamcoulombe
I use this to quickly (in one line) copy my own id_rsa.pub to remote server so I can connect w/out using my password.
1
1862
posted 15 years ago by electblake
Simply run the function when the document has loaded and specify setDefault to true.
0
1457
posted 15 years ago by digitalclubb
Very useful line of code that I'm using very often to prevent old and cached CSS file being served to visitors. You just need to use timestamp of the file.
0
1931
posted 15 years ago by vagrantradio
Originally from:
http://wordpress.mfields.org/2010/selective-page-hierarchy-for-wp_list_pages/
0
1465
posted 15 years ago by lawlesscreation
How to sort array in smarty template?
>> Create sort modifier file and save it in smarty / plugins with
modifier.sortby.php name
use this modifier in smarty template like...
{foreach item=item key=key from=$users|@sortby:"firstname"}
{$item.i...
0
3484
posted 15 years ago by aashvi
To enable error reporting for *ALL* error messages including every error level (including E_STRICT, E_NOTICE etc.), simply use:
1
1033
posted 15 years ago by Hepamin
Very usefull translation adapter for simple interfaces where creating translation files is just a bit to much.
1
1263
posted 15 years ago by RonXS
Use this to fix Pagination Problem on query posts page. This will fix the problem where clicking on the next page keeps showing same posts
1
1443
posted 15 years ago by Farhan
This SQL query will find all the SlideDeck related entries in your WordPress database.
0
1356
posted 15 years ago by Jamie
Takes the ID of a page, then displays a list of child pages with thumbnails and page titles. The thumbnail is generated from the 'featured image' of the particular child page.
2
1663
posted 15 years ago by martinlucas
Search SQL Server field names and stored procedure text, based on a keyword.
1
1824
posted 15 years ago by axs221
The most annoying thing I find working with the strict doctype is the inability to send users off to a site in a new window.
To combat this, I always use the above snippet.
Some people just stick the attribute on the anchors when the page loads...
0
1496
posted 15 years ago by digitalclubb
This extends jQuery.is() so now you can use if ($(element).is())
0
1361
posted 15 years ago by digitalclubb
Great way to check if a node exists before running a piece of code.
2
1705
posted 15 years ago by digitalclubb
This is some very basic jQuery to post from a comment form on a website. I would probably change the .click to .bind("click",) and for different sites I add a success message. This code works with a basic form with text inputs named #name and #email...
3
1691
posted 15 years ago by creativeboulder
An example of how to configure the CliBuilder to read command line arguments in Groovy.
0
1334
posted 15 years ago by miceno