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 660 posted 13 years ago by webonomic
A custom class for retrieving deliminated data from a (custom) MyString string.
0 496 posted 13 years ago by trusktr
usage; $.toJSON($(\'form\').serializeObject());
3 671 posted 13 years ago by virgil
Gets all meta data keys/values for a particular post
1 775 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 696 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 517 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 788 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 595 posted 13 years ago by derebus
Old school or simple way of querying data without a DAL.
1 676 posted 13 years ago by myke
0 736 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 733 posted 13 years ago by adrianparr
You need to download the SWC from here (http://github.com/claus/as3swf/archives/master) first.
0 564 posted 13 years ago by adrianparr
jQuery Ajax function to load xml data into a table and add class to even rows for striping.
1 1288 posted 14 years ago by vagrantradio
1 590 posted 14 years ago by CDIDevs
0 491 posted 14 years ago by rvachere
0 483 posted 14 years ago by rvachere
Came across this nice snippet @ mysql.com
2 2762 posted 14 years ago by j4kp07
Definitely falls into the category of "simple thing I shoulda memorized years ago", but whatever:
0 617 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 1046 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 692 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 573 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 654 posted 14 years ago by kilrizzy
Simple markup example in YAML.
0 677 posted 15 years ago by 1man