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 1387 posted 15 years ago by webonomic
A custom class for retrieving deliminated data from a (custom) MyString string.
0 1007 posted 15 years ago by trusktr
usage; $.toJSON($(\'form\').serializeObject());
3 1512 posted 15 years ago by virgil
Gets all meta data keys/values for a particular post
1 1725 posted 15 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 1360 posted 15 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 1074 posted 15 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 1467 posted 15 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 1313 posted 15 years ago by derebus
Old school or simple way of querying data without a DAL.
1 1250 posted 15 years ago by myke
0 1243 posted 15 years ago by adampatterson
0 1289 posted 15 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 1510 posted 15 years ago by adrianparr
You need to download the SWC from here (http://github.com/claus/as3swf/archives/master) first.
0 981 posted 15 years ago by adrianparr
jQuery Ajax function to load xml data into a table and add class to even rows for striping.
1 2003 posted 15 years ago by vagrantradio
1 1426 posted 15 years ago by CDIDevs
0 1013 posted 15 years ago by rvachere
0 1076 posted 15 years ago by rvachere
Came across this nice snippet @ mysql.com
2 3883 posted 15 years ago by j4kp07
Definitely falls into the category of "simple thing I shoulda memorized years ago", but whatever:
0 1227 posted 16 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 2187 posted 16 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 1289 posted 16 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 1342 posted 16 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 1514 posted 16 years ago by kilrizzy
Simple markup example in YAML.
0 1345 posted 16 years ago by 1man