Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Drop this in your project dir and run it. This will recursively kill CVS files and folders.
0
3660
posted 13 years ago by laurenceosx
You can use this to get the page source code of any valid URL. Tested on VS2010.
0
4976
posted 13 years ago by nimblebits
This is a bash file to Create or Delete Virtual Host in Ubuntu system and Apache server.
This file open the Virtual Host in "/home/{user}/www/{domain}"
To run this file you need to make this file executable:
> sudo chmod u+x /path/to/file
Th...
0
1716
posted 13 years ago by roeyhaim
This example is for an inline table value function with one string parameter
t1 is of type YourDataContext and t2 is of type string(hence the name of the mole method)
0
3214
posted 13 years ago by kirstencris
This function mimics Photoshop overlay blending by accepting two RGB arrays, one which will be overlayed and one which will overlay. Opacity is optional.
0
1643
posted 13 years ago by laurikar
Run these queries (phpMyAdmin will do) to delete all media in the library, and remove all post attachment affiliation
1
3838
posted 13 years ago by rickygri
The use of dynamic data acquisition on modern web sites and in a lot of intranet applications, sometimes means we have to build structures dynamically as data comes in from a feed or AJAX operations. The problem is not with the data, but rather that...
0
1647
posted 13 years ago by COBOLdinosaur
La función del SDKphp de facebook 'notifications' envia una notificación por parte de la aplicación al usuario que quieras (que haya aceptado tu aplicación).
0
1625
posted 13 years ago by serialk89
see http://groovy.codehaus.org/gapi/groovy/inspect/swingui/ObjectBrowser.html
0
3659
posted 13 years ago by laurenceosx
designing a simple horizontal tab menu by using ul and il elements with css.
0
1843
posted 13 years ago by codingforever99
Sample SVN call from gradle: doSvnMain( 'your', 'svn', 'args', 'go', 'here' );
0
4031
posted 13 years ago by laurenceosx
Created this to generate file:/ script path for Groovy Refreshable Spring Beans
for use in applicationContext.groovy because refresh feature wouldn't work
when Groovy script is looked up on classpath.
0
3667
posted 13 years ago by laurenceosx
One of the great methods to load and work with icons in web pages is to load one image that is a collection of several icons and use any icon as needed, that reduces the number of server request and save bandwidth.
1
2064
posted 13 years ago by codingforever99
When this snippet is added to a class it provides the boolean property: osWindows
0
3679
posted 13 years ago by laurenceosx
This will loop through files in somefolder with the extension .c, print out the filename and compile the files.
0
4035
posted 13 years ago by stianlagstad
PostgreSQL wildcard search for any of a list of words, returns true or false depending on whether its pattern matches the given string.
0
1905
posted 13 years ago by alecolucci
See: http://grepcode.com/file/repo1.maven.org/maven2/org.eclipse.jetty/jetty-start/7.1.1.v20100517/org/eclipse/jetty/start/Main.java#Main.stop%28int%2Cjava.lang.String%29
0
3541
posted 13 years ago by laurenceosx