Welcome To Snipplr


Everyone's Recent Snippets



1 ... 416 417 418 419 420 ... 553
0 1018 posted 16 years ago by chrisaiv
get the list of dirs process that list to cmd expressions run the file with cmd exprssns
0 949 posted 16 years ago by rowntreerob
Ever wanted nested stylesheets? I have! Now you can have them! If you code your stylesheets as JSON and parse them using JSS 0.1. You could have the following: JSS({ 'html': { 'body': { background: '#ff...
0 1286 posted 16 years ago by dom111
Administering more than one node at a time through the Drupal admin interface is like drinking a milkshake through a buckytube. [How to use phpmyadmin and sql to perform mass operations on nodes](http://drupal.org/node/134535)
1 1304 posted 16 years ago by zachharkey
Based on some comments in [StackOverflow Question](http://stackoverflow.com/questions/95875/javascript-check-to-see-if-a-variable-is-an-object "How to check if a variable is an object")
3 1567 posted 16 years ago by jasonseney
Recently moved my Wordpress blog to a tumblr account while I was removing a hosting account, wrote this script to do the transfer for me using Wordpress' Export feature and Tumblr's API. It's rough around the edges but gets the job done!
2 2096 posted 16 years ago by shakefon
This is the modified GWT HTML host page for your module. As you can see, the only modified element is the path to the GWT bootstrap script, the original declaration was the GWT 1.5 way, the new declaration is the [GWT 1.6 way](http://code.google.com/...
0 913 posted 16 years ago by salvadordiaz
Works in IE not Firefox/Mozilla.
0 1253 posted 16 years ago by hotdiggity
Say that you have a collection of objects empty but for IDs. You want to do a foreach loop through those objects and lookup detail one at a time. Unfortunately, in the foreach, you can't replace the references, you can only copy the new detail...
1 1735 posted 16 years ago by rengber
2 1123 posted 16 years ago by kristarella
0 3440 posted 16 years ago by statsplank
Don't run the dev server as an actual web server. I'm just doing this so I can work remotely on a vm.
0 3180 posted 16 years ago by tclancy
0 1087 posted 16 years ago by jturmel
Dado un objeto original, este método copia los valores de ese objeto en un segundo objeto de la misma clase, utilizando reflection.
0 1130 posted 16 years ago by delm
Esta función devuelve un string aleatoreo con un largo aleatoreo, con un mínimo y un máximo. El uso más común es solo especificar el largo máximo. Especialmente útil para pruebas unitarias. NOTA: depende de http://snipplr.com/view/14580/n...
1 1030 posted 16 years ago by delm
When you hover over the “message” div, the “controls” div inside it will appear, along with all of its content, giving you the same functionality as used by the Twitter web app. There may be an issue with accessibility because screen reade...
0 1122 posted 16 years ago by justinseiter
In case you don't feel like loading 3 pages to edit a single url alias.
1 1317 posted 16 years ago by zachharkey
This is a simple script that will allow you to crop an image that you upload from a form.
1 1241 posted 16 years ago by aristoworks
This is how NetTuts does their filterable Portfolio.
3 1337 posted 16 years ago by conspirator
Min-height of an element that works in all browsers.
2 1485 posted 16 years ago by avantsi
Transform text (eg. from a WYSIWYG) into nicely formatted HTML paragraphs. (Credits: Ludo Magnocavallo's LightPress). [this is a solid starting point - but a lot of HTML elements are missing]
3 1061 posted 16 years ago by iroybot
HRs are a pain in the ass to style, so why bother? Wrap them in a DIV with a class of HR instead. (In your stylesheet, set .hr hr { display: none }). This also ports the class of the HR up to the new parent DIV, allowing you to make a few differen...
1 924 posted 16 years ago by dougunderscorenelson
This adds a class to focused form elements (helpful for IE6/7), as well as adds a class to the input's parent (in this case, named "form-field").
1 1195 posted 16 years ago by dougunderscorenelson
Quick script to find button elements (and elements with the "button" class) and wrap their innards in spans. Good for making rounded-corner buttons.
0 961 posted 16 years ago by dougunderscorenelson
since the script observes mouseout, it should fire mouseleave events before mouseenter to preserve correct order.
1 1500 posted 16 years ago by pdswan
This will return a list of all the tables in a certain database along with their row count.
1 1319 posted 16 years ago by blackf0rk
1 ... 416 417 418 419 420 ... 553