Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
If a string exceeds x characters (defaults to 100), trims the string to the first x characters and appends a tail to the end of the truncated string (defaults to an ellipsis).
0
739
posted 13 years ago by bluecap
Execute function / action when an element has loaded or clicked.
Originally seen here: http://www.codingforums.com/archive/index.php/t-144582.html
0
738
posted 13 years ago by reverend
Hi Guys,
I had a job to remove all kinds of comments from the Lua file. I tried to find a usable Python script to this on the net, but Google did not help.
Therefore, I made one. This script recognizes all types of comments such as single and mul...
0
1661
posted 13 years ago by Woodoo
Transforms string to it's possessive form and return it's original case form.
0
599
posted 13 years ago by Arvi
Sometimes you have a load of HTML that is difficult to write up as a String from within a javascript function so this is an example of a simple Panel with an event for after rendering that injects it with content from a file.
0
1040
posted 13 years ago by LeeProbert
Just save this as MY_Router.php and upload to application/core/ and now you'll be able to use us :alpha along with :num and :any in your routes to signify that you just want to match a-z.
0
909
posted 13 years ago by Josh
Better way to hide content whilst still making it available to
0
758
posted 13 years ago by lamebollock
This is a jquery full screen background image plugin for indexhibit using
http://srobbin.com/jquery-plugins/jquery-backstretch/
0
655
posted 13 years ago by orionrush
Ruby uses created_at and updated_at. Here cake will do the same thing.
based on http://book.cakephp.org/view/1015/created-and-modified
0
968
posted 13 years ago by kendsnyder
If you are developing for iOS with AIR and are deleting/removing applications from iTunes/device each time you want to test you will want to read this.
0
926
posted 13 years ago by renaun
Add to the <head> of your page after the main stylesheet to serve different stylesheets for different versions of Internet Explorer
0
689
posted 13 years ago by amyb