Welcome To Snipplr


Everyone's Recent Snippets



1 ... 416 417 418 419 420 ... 554
0 979 posted 16 years ago by ira
2 857 posted 16 years ago by ira
Useful little spippet for a button anchor where the text may change.
0 1214 posted 16 years ago by 1man
0 776 posted 16 years ago by chrisaiv
get the list of dirs process that list to cmd expressions run the file with cmd exprssns
0 740 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 997 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 994 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 1172 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 1547 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 722 posted 16 years ago by salvadordiaz
Works in IE not Firefox/Mozilla.
0 965 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 1254 posted 16 years ago by rengber
2 840 posted 16 years ago by kristarella
0 1174 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 1037 posted 16 years ago by tclancy
0 816 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 845 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 799 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 917 posted 16 years ago by justinseiter
In case you don't feel like loading 3 pages to edit a single url alias.
1 971 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 1004 posted 16 years ago by aristoworks
This is how NetTuts does their filterable Portfolio.
3 1037 posted 16 years ago by conspirator
Min-height of an element that works in all browsers.
2 958 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 784 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 691 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 912 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 726 posted 16 years ago by dougunderscorenelson
1 ... 416 417 418 419 420 ... 554