Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Quick little snippet for changing the ordering of a field in a MYSQL database.
1
1554
posted 17 years ago by Zync
A simple line of code to apply to attributes that need to be toggled on and off.
0
1114
posted 17 years ago by cessnajumpin
See [Raise and Handle Events Generically](http://snipplr.com/view/15033/raise-and-handle-events-generically/) for a better way to use events (generically) and links to best practices in .NET events.
This example should be used as a Console program...
0
1468
posted 17 years ago by pckujawa
This takes a very readable date, such as "Fri, 4 Dec 2008 15:13:00 +0000", and outputs it as a relative date (such as "1 hour ago").
1
1479
posted 17 years ago by bjarkebech
First Remove all capital letters, then capitalise the first ones in each word.
1
1358
posted 17 years ago by Wardy
Use this command to prevent seeing ....68 more type stack trace message in Grails output.
0
1129
posted 17 years ago by kouphax
Here's how I was able to capture the HREF of a page using actionscript
3
1377
posted 17 years ago by chrisaiv
reference:
http://codex.wordpress.org/Template_Tags/wp_list_categories
1
1053
posted 17 years ago by Ashung
1. Edit the html form 'action' to point to your PHP page that handles the upload.
2. Create the php page with the code below
3. Define Paths in PHP lines: 3 , 4 of php file
4. Create matching folder to paths in #3 on server.
5. chmod that folder...
4
1834
posted 17 years ago by jadedbat
This uses the concatenation operator "##" to insert a comment "//"
0
6073
posted 17 years ago by jimfred