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 669 posted 13 years ago by webonomic
A custom class for retrieving deliminated data from a (custom) MyString string.
0 503 posted 13 years ago by trusktr
usage; $.toJSON($(\'form\').serializeObject());
3 683 posted 13 years ago by virgil
Gets all meta data keys/values for a particular post
1 793 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 711 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 528 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 804 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 605 posted 13 years ago by derebus
Old school or simple way of querying data without a DAL.
1 688 posted 13 years ago by myke
0 748 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 746 posted 14 years ago by adrianparr
You need to download the SWC from here (http://github.com/claus/as3swf/archives/master) first.
0 572 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 1311 posted 14 years ago by vagrantradio
1 600 posted 14 years ago by CDIDevs
0 496 posted 14 years ago by rvachere
0 494 posted 14 years ago by rvachere
Came across this nice snippet @ mysql.com
2 2784 posted 14 years ago by j4kp07
Definitely falls into the category of "simple thing I shoulda memorized years ago", but whatever:
0 629 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 1067 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 708 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 585 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 669 posted 14 years ago by kilrizzy
Simple markup example in YAML.
0 694 posted 15 years ago by 1man