Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
2298
posted 15 years ago by electblake
Simply run the function when the document has loaded and specify setDefault to true.
0
1838
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
2331
posted 15 years ago by vagrantradio
Originally from:
http://wordpress.mfields.org/2010/selective-page-hierarchy-for-wp_list_pages/
0
1818
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
4092
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
1368
posted 15 years ago by Hepamin
Very usefull translation adapter for simple interfaces where creating translation files is just a bit to much.
1
1617
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
1837
posted 15 years ago by Farhan
This SQL query will find all the SlideDeck related entries in your WordPress database.
0
1736
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
2025
posted 15 years ago by martinlucas
Search SQL Server field names and stored procedure text, based on a keyword.
1
2243
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
1936
posted 15 years ago by digitalclubb
This extends jQuery.is() so now you can use if ($(element).is())
0
1738
posted 15 years ago by digitalclubb
Great way to check if a node exists before running a piece of code.
2
2102
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
2117
posted 15 years ago by creativeboulder
An example of how to configure the CliBuilder to read command line arguments in Groovy.
0
1726
posted 15 years ago by miceno