Welcome To Snipplr


Everyone's Recent Snippets Tagged data



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 671 posted 13 years ago by webonomic
A custom class for retrieving deliminated data from a (custom) MyString string.
0 507 posted 13 years ago by trusktr
usage; $.toJSON($(\'form\').serializeObject());
3 686 posted 13 years ago by virgil
Gets all meta data keys/values for a particular post
1 797 posted 13 years ago by mattkenefick
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 714 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 535 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 808 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 614 posted 13 years ago by derebus
Old school or simple way of querying data without a DAL.
1 692 posted 13 years ago by myke
0 758 posted 13 years ago by Myrddin
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 753 posted 14 years ago by adrianparr
You need to download the SWC from here (http://github.com/claus/as3swf/archives/master) first.
0 577 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 1318 posted 14 years ago by vagrantradio
1 606 posted 14 years ago by CDIDevs
0 501 posted 14 years ago by rvachere
0 502 posted 14 years ago by rvachere
Came across this nice snippet @ mysql.com
2 2791 posted 14 years ago by j4kp07
Definitely falls into the category of "simple thing I shoulda memorized years ago", but whatever:
0 634 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 1070 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 713 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 590 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 673 posted 14 years ago by kilrizzy
Simple markup example in YAML.
0 703 posted 15 years ago by 1man