Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Tired of running seperate scripts for jBoss with/out jRebel and manual cleaning temp.
0
1445
posted 15 years ago by dogrizz
The date format is dd/mm/YYYY but you can replace slashes by anything else.
0
1867
posted 15 years ago by ptiswitz
If your HTML form fields have a 'watermark' default value, it will be removed when the field is focussed and replaced if focus is lost (and the user has left the field blank).
To use give your form field a class of 'default-value'
3
2390
posted 15 years ago by f6design
If a post is published without setting a featured image and there is an image attachment, this will select an image from the media library and set it as the featured image.
0
1806
posted 15 years ago by chrs
given a url:
>`http://www.someurl.com/page.html?param1=foo¶m2=bar`
You can use map.param1 outside of the function such as:
>`$('#some_hidden_field').val(map.param1);`
0
1496
posted 15 years ago by agdm
Add this piece of code in your .htaccess file located in wordpress root directory
0
1679
posted 15 years ago by kirichev
This is 3 lines of javascript code to tweetify plain text returned by Twitter API
Input : RT @TTintheCloud: How much are free #cloudcomputing trial offers from Google, Amazon and Microsoft actually WORTH? http://bit.ly/i4w4qa
Output : RT <a hre...
1
1340
posted 15 years ago by naren1012
Put this code in your theme, where you want to show followers count. Don't forget to change USERNAME.xml to your twitter user name.
0
1824
posted 15 years ago by kirichev
Re-indexes an array so that the array keys count up from zero. This is useful if you have previously removed some array nodes.
0
1657
posted 15 years ago by f6design
Show a notification immediately after application enter in background (but you can schedule it too)
0
2332
posted 15 years ago by rabc