Welcome To Snipplr


Everyone's Recent Snippets



1 ... 429 430 431 432 433 ... 554
Connects to a web page, reads in the content and strips whitespace.
2 1385 posted 16 years ago by gdvickery
A nice example of utilizing Groovy closures in order to create a when statement in Groovy (http://www.transentia.com.au/flatpress/?x=entry:entry090311-222726).
0 1367 posted 16 years ago by narkisr
1 1035 posted 16 years ago by muhammet
Adding a namespace to an event can make it easier to unbind. It is very easy to unbind all events with the same namespace.
1 1305 posted 16 years ago by 1man
Never used the index() method in jQuery but could be useful to know. Find a selected elements index when you click on it. Note the $('ul#mylist') inside the index method, gives the search some context of where to look for .selected, saves looking thr...
1 1285 posted 16 years ago by 1man
jquery ui/tabs initiation ensures screenreaders can focus content when selecting tabs. Tested using Jaws 8.
3 1016 posted 16 years ago by terrencewood
0 1026 posted 16 years ago by timstepp
Just add this in script tags in your Affiliate Center footer:
0 929 posted 16 years ago by kickjoel
3 1876 posted 16 years ago by jamesming
5 1443 posted 16 years ago by jamesming
0 1154 posted 16 years ago by hlubek
This is how you can connect SQL Server to a Share folder for your backups. After running this, you will see the letter T: in the GUI. Each line must be run seperatly.
0 1415 posted 16 years ago by pollusb
This function simply takes a Windows UTC timestamp and converts it to Unix epoch. This was useful when I was pulling LDAP information from Active Directory and the timestamps were ridiculous. Windows builds timestamps by counting seconds since Janua...
0 1421 posted 16 years ago by cllorca
This script will also work on any spreadsheet program like Google Docs.
0 1150 posted 16 years ago by pollusb
0 1056 posted 16 years ago by muhammet
Bourne Shell Script (created on a FreeBSD_7.1-RELEASE system :-)
0 1083 posted 16 years ago by hackware
Serializes any <serializable/> object and writes it to the specified location on the disk. Example: Dim obj As DataTable 'save obj to disk SerializeToFile(filepath, obj) 'to read it back, use DirectCast Dim obj2 As DataTable = DirectCast(...
0 1407 posted 16 years ago by chavcho
Use this to extract an image embedded as a resource in your project. Call the function supplying the full path to the resource, for example: Dim myImage as Bitmap = EmbeddedIcon("MyApplication1.myImage.png") Where "MyApplication1" is the root n...
0 1408 posted 16 years ago by chavcho
Learn how to use CSS to save the environment by not wasting unnecessary paper and ink.
1 1230 posted 16 years ago by neal_grosskopf
It is necessary on occasion to execute a command in interactive shell. (I needed to to get access to some env vars... ) While there are many way to accomplish this I opted to run my cmd in interactive mode. To do so I had to write this little wrappe...
0 2198 posted 16 years ago by adaminuwashinet
The .jpg extension can be changed to any extension. So if you want to pull out only .txt files, you just need to replace the .jpg with .txt. If you want to list ALL files, just remove the condition.
1 1576 posted 16 years ago by fackz
2 1005 posted 16 years ago by blubadger
Example uses an object from 3rd party API. Needed to turn it into xml for returning from a webservice.
0 1018 posted 16 years ago by jasonseney
Export entire database schema to local xml file.
1 1195 posted 16 years ago by jonniespratley
1 ... 429 430 431 432 433 ... 554