Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
1699
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
1723
posted 16 years ago by cllorca
This script will also work on any spreadsheet program like Google Docs.
0
1386
posted 16 years ago by pollusb
Bourne Shell Script (created on a FreeBSD_7.1-RELEASE system :-)
0
1261
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
1624
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
1614
posted 16 years ago by chavcho
Learn how to use CSS to save the environment by not wasting unnecessary paper and ink.
1
1466
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
2537
posted 16 years ago by adaminuwashinet
Python
URIエンコードã¨ãƒ‡ã‚³ãƒ¼ãƒ‰ã«ã¯urllibモジュールã®quote()ã¨unquote()ãŒä½¿ã¸ã‚‹
0
1218
posted 16 years ago by tamuratetsuya
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
1926
posted 16 years ago by fackz
Example uses an object from 3rd party API. Needed to turn it into xml for returning from a webservice.
0
1216
posted 16 years ago by jasonseney
This is sometimes not the best solution to a server caching your css files. But if you want to force a stubborn server to serve the most recent css file to the browser this seems to work. Could slow things down a touch, but for small css files not...
1
1842
posted 16 years ago by jadedbat
I needed a quick way to resize and save to a folder lots of images. Imagemagick is magic indeed!
1
2138
posted 16 years ago by zerolab