Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
If post has featured image, use it.. If not, pick out the first in the post.. Still not working? Stick with the default one..
3
1010
posted 13 years ago by Wendelboe
Change the category id and store id at the top of the script before running it. You can also remove the echo statements if you don’t want any output.
0
691
posted 13 years ago by TheJasonParker
Some cool free templates I've found.
Included in every template :
Photoshop Document : Layered and ready to tweak
HTML Template: Tested and ready for your content
0
753
posted 13 years ago by Iban
MySQL
Create new table from a selection from another existing table (including copying data structure)
This is ideal for testing queries etc. Run this to copy a selection of data into a new table with the same scructure. Then you can run test queries etc on it. Once you are happy then run the queries on the live data table...enjoy
0
999
posted 13 years ago by sjacunningham
Replace 'A1' with the cell and '-' with the character you want to remove.
0
913
posted 13 years ago by TheJasonParker
If each title is unique and you need alphabetical, try this in your Post model. You can change title to any unique attribute (created_at, id, etc.) if you need a different sort order.
0
852
posted 13 years ago by gmericksen
Example written 01/13/2011
The following code shows how to implement functionality in your Windows Forms application, such that you'll be able to open a file that is dragged and dropped onto your program's form. This behavior is often desirable fo...
0
830
posted 13 years ago by kyrathaba
Groovy
Groovy Swing data binding example that works on a freshly created object (online example does not)
0
1041
posted 13 years ago by laurenceosx
ExtJS is great for OO style interface design but has a couple of strange behaviors. For instance when adding the ExtJS RowExpander plugin to a grid, the plugin overrides the gridView's getRowClass function. That's not really what you want. For instan...
0
870
posted 13 years ago by misterb101
You will want to include the jquery easing plugin: http://gsgd.co.uk/sandbox/jquery/easing/
Add a class of 'scroll' to any element that should slide to an anchor tag. You must give the anchor tag an id equal to the name.
1
957
posted 13 years ago by BFTrick
login issue in development server (copy site from live site)
site url is different
0
810
posted 13 years ago by aashvi
When a float is contained within a container box that has a visible border or background, that float does not automatically force the container's bottom edge down as the float is made taller. Instead the float is ignored by the container and will han...
0
668
posted 13 years ago by lamebollock