Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Use inType=0 and feed in a specific Google Maps URL to parse out the GeoCoords from the URL
e.g. http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=53154&sll=37.0625,-95.677068&sspn=52.505328,80.507812&ie=UTF8&ll=42.858224,-88.000832&spn=0....
4
4454
posted 17 years ago by blackf0rk
This is a simple function to test for an internet connection. Originally grabbed from "devbuzz" at the devbuzz forums (see link) and now modified for VB.NET 3.5
0
2366
posted 17 years ago by blackf0rk
you can use this function for ie javascript bug. İt is switchin display with javascript
0
1765
posted 17 years ago by Thresh
Call AddKeepAlive() in Page_Load of the page that needs it. Change the path to the correct keep alive page.
Page should disable caching, like in second code snippet.
2
2260
posted 17 years ago by jink
A simple replacement for print_r or whatever you use to display debug info.
2
2065
posted 17 years ago by PeteW
A lovely little one liner that strips out all non alphanumeric chars first, then replaces the spaces with hyphens, then converts all to lowercase :D
0
1608
posted 17 years ago by xtheonex
I occasionally need a WinExec function the synchronously executes a command. cwdArg may be null.
This example, upon error, pops-up a dialog and exits the app. This is useful for small installation utilities.
non-dot.net, with or without MFC.
0
1765
posted 17 years ago by jimfred
Determine directory where the .exe is running from. Usually it's CWD - but not always, such as MsiExec Custom Actions.
Windows. non-dot.net, with or without MFC.
0
1937
posted 17 years ago by jimfred
Simple non-dot.net function to determine if a file exists. Uses the WinBase API. Can be used with or without mfc.
Windows, non-dot.net, with or without MFC.
0
4037
posted 17 years ago by jimfred
Magento Storeview über Flaggenbuttons steuern statt über Dropdown
0
1489
posted 17 years ago by nico65