Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
1827
posted 15 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
2092
posted 15 years ago by visudex
This snippet will allow you to capture your screen in Java and saves the image as a PNG
0
1884
posted 15 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
1675
posted 15 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
2353
posted 15 years ago by jarnaldich
This code is usefull for getting the list of Wordpress Sites from Multisite without sending each user id.
0
2709
posted 15 years ago by juanrossi
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
1713
posted 15 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
2171
posted 15 years ago by cruelfate
this is my way of working out the contents of an object when I don't have access to a debugger like firebug
0
1293
posted 15 years ago by iancrowther
A subtle gradient effect for <hr> tags. Works on Firefox and Webkit browsers (i.e. Chrome / Safari / Midori).
0
1482
posted 15 years ago by pmigueld