Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
You can use this to get the page source code of any valid URL. Tested on VS2010.
0
5534
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
2170
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
3721
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
2073
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
4398
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
2121
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
2023
posted 13 years ago by serialk89
see http://groovy.codehaus.org/gapi/groovy/inspect/swingui/ObjectBrowser.html
0
4199
posted 13 years ago by laurenceosx
designing a simple horizontal tab menu by using ul and il elements with css.
0
2347
posted 13 years ago by codingforever99
Sample SVN call from gradle: doSvnMain( 'your', 'svn', 'args', 'go', 'here' );
0
4520
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
4172
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
2519
posted 13 years ago by codingforever99
When this snippet is added to a class it provides the boolean property: osWindows
0
4154
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
4604
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
2435
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
4023
posted 13 years ago by laurenceosx
Supported brands
name | key
-----------------------
American Express | :amex
China UnionPay | :unionpay
Diners Club | :diners
Dinner Club US | :diners_us
Discover | :discover...
0
5334
posted 13 years ago by Fivell
this is a simple script to take iframe parameters and build an iframe via a shortcode
1
2026
posted 13 years ago by bitsculptor