Welcome To Snipplr


Everyone's Recent Snippets



1 ... 226 227 228 229 230 ... 554
0 747 posted 14 years ago by duncanmcdougall
Suppress button to "split summary at cursor" on node bodies that are generally short and won't ever be displayed as teasers. (These lines go in hook_form_alter functions.)
0 996 posted 14 years ago by tgbdad
Suppress the input format section of a node form when you don't really want users (even admin) to change it. Particularly handy for uncluttering forms with lots of CCK fields on them.
0 878 posted 14 years ago by tgbdad
By default, enum values cannot have spaces in them (i.e. "Created Date" can only be "CreatedDate"). With this method, we can change that!
0 3079 posted 14 years ago by dotNetkow
0 974 posted 14 years ago by ashsa
Donwloads weren't working with https + ie6/ie7. This line solves the problem (order is important, **no-store** must be first).
0 971 posted 14 years ago by ashsa
0 952 posted 14 years ago by NiReiC
0 912 posted 14 years ago by thesmu
/*Coded by Alessio Delmonti - www.tecnocrazia.com */
1 929 posted 14 years ago by Mosaic
/*Coded by Alessio Delmonti - www.tecnocrazia.com*/
0 918 posted 14 years ago by Mosaic
Ever got tired of writing System.out.print(); all the time when testing, well, to avoid this, just create a helper method that will narrow it down to print();
0 1043 posted 14 years ago by visudex
This snippet will allow you to read user's input when they write in the console. This method uses the Scanner class, which is my favorite way of doing instead of using the Buffered Reader, with the Scanner, you can also read from a file.
0 1115 posted 14 years ago by visudex
This snippet will allow you to capture your screen in Java and saves the image as a PNG
0 1074 posted 14 years ago by visudex
Use the regular box shadow, but add the keyword "inset" as the last parameter. Works in Firefox, Safari, Chrome, Opera and IE9.
0 876 posted 14 years ago by visudex
replace foo -> bar in all .txt files down the tree Dunno why, the syntax highlighter adds \3's to the code. Try plain text.
0 1322 posted 14 years ago by jarnaldich
0 940 posted 14 years ago by cabrel
0 837 posted 14 years ago by rc2789
0 1012 posted 14 years ago by rc2789
This code is usefull for getting the list of Wordpress Sites from Multisite without sending each user id.
0 1481 posted 14 years ago by juanrossi
MacOS 10.6.5 PHP 5.3.3
0 794 posted 14 years ago by zuzara
1 1106 posted 14 years ago by adambundy
0 967 posted 14 years ago by rc2789
Here is a little bit of code I use from time to time to make a generic some what safe date selector for forms. I wanted something easy, small, and not relying on images, jquery, libraries, etc... Most importantly I wanted the date that was selected t...
0 971 posted 14 years ago by brownrl
Note that there is limited support for _CSS_ in Swing components which render HTML text. This example employs `padding`, `margin` and `font-size`. The full list of supported properties (and their limitations) are in the [Javadoc][1] [1] ht...
0 1249 posted 14 years ago by cruelfate
0 1157 posted 14 years ago by simondiercks
1 ... 226 227 228 229 230 ... 554