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
1185
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
1263
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
1103
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
1605
posted 15 years ago by electblake
Simply run the function when the document has loaded and specify setDefault to true.
0
1230
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
1665
posted 15 years ago by vagrantradio
Originally from:
http://wordpress.mfields.org/2010/selective-page-hierarchy-for-wp_list_pages/
0
1249
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
3162
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
863
posted 15 years ago by Hepamin
Very usefull translation adapter for simple interfaces where creating translation files is just a bit to much.
1
1053
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
1207
posted 15 years ago by Farhan
This SQL query will find all the SlideDeck related entries in your WordPress database.
0
1155
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
1435
posted 15 years ago by martinlucas
Search SQL Server field names and stored procedure text, based on a keyword.
1
1576
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
1284
posted 15 years ago by digitalclubb
This extends jQuery.is() so now you can use if ($(element).is())
0
1146
posted 15 years ago by digitalclubb
Great way to check if a node exists before running a piece of code.
2
1438
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
1436
posted 15 years ago by creativeboulder