Welcome To Snipplr
Everyone's Recent Snippets Tagged data
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This regular expression used in Ruby will extract the characters between single or multi-character delimiters. It helps when you have strange delimiters such as \":delimeter1: text I want to grab goes here :delimiter2:\"
0
685
posted 13 years ago by webonomic
A custom class for retrieving deliminated data from a (custom) MyString string.
0
515
posted 13 years ago by trusktr
I can see this being useful for when you want to pass a lot of associated data to an event handler from elements and their chosen trigger action.
1
718
posted 13 years ago by Meander365
A small snippet on how to create a dynamic model in CakePHP (useful for global functions that need a model to function. IE functions defined in the AppController
0
545
posted 13 years ago by stolkchris
This is dead handy. The purpose of the custom filter is to select all elements which have data attached. You can even find specific data.
1
820
posted 13 years ago by Meander365
Declaramos tantas variables como campos vaya a devolver la select que nos estamos currando para el cursor, en este ejemplo con dos campos vamos contentos:
* declare @campo1 int
* declare @campo2 int
Ahora declaramos el cursor, al cual...
0
624
posted 13 years ago by derebus
You need to create the 'SWFReader.as' class file (see link above) and save it in to the package (folder structure) 'com/senocular/utils'.
1
760
posted 14 years ago by adrianparr
You need to download the SWC from here (http://github.com/claus/as3swf/archives/master) first.
0
581
posted 14 years ago by adrianparr
jQuery Ajax function to load xml data into a table and add class to even rows for striping.
1
1329
posted 14 years ago by vagrantradio
Definitely falls into the category of "simple thing I shoulda memorized years ago", but whatever:
0
641
posted 14 years ago by rengber
This function is very helpfull when you need to put some data (that was gotten from database) to HTML table. You can choose vertical or horizontal types.
**Horizontal type:**
| 1 | 2 | 3 |
| 4 | 5 | 6 |
| 7 | 8 | 9 |
**Vertical type:**...
1
1081
posted 14 years ago by kirik
From StackOverflow. I'm still not quite happy with my understanding of it, but it looks an order of magnitude more elegant than most I've found.
0
719
posted 14 years ago by rengber
Use this function to print out all the rows in a table. Specify columns to show using the columnstring parameter:
tablulardata(tablename, columnstring);
ie:
tabluardata("users","username=Username|fname=First Name|lname=Last Name");
1
599
posted 14 years ago by kilrizzy
Use this function to pull all columns from a single database field.
getrowdata(tablename,rowid,prefix);
You would call this function like:
getrowdata("users",$_SESSION['user'],"user_");
The prefix is the prefix you want for the array names,...
1
679
posted 14 years ago by kilrizzy