Welcome To Snipplr


Everyone's Recent Snippets



1 ... 428 429 430 431 432 ... 554
updated 2013-04-18! just replace the XXX fields with your own numbers. Then run this PHP Script from the command line (CLI mode). It will fetch the online statements from Hypovereinsbank direct banking. The code works by tweaking CURL settings...
0 1710 posted 16 years ago by uioreanu
A little bit of browser detection and some functions to get the viewport height and width, crossbrowser.
1 1810 posted 16 years ago by ShiftyP
1 973 posted 16 years ago by apro2000
include document ready and standard code to run swfobject smoothly in IE6
1 1029 posted 16 years ago by apro2000
This is a little trick I've used a few times to emulate Folders on a site and drop the extensions. In this example I'm using a PHP site but could easily be ported for other file types. One caveat to look out for is files will not always want to be ca...
1 716 posted 16 years ago by jackkeller
This is a CSS reset snippet for the default (yui-navset-top) style of YUI TabView 2.7.0. This snippet enables rapid TabView prototyping and makes it easy to overwrite the default style while still serving the main CSS from Yahoo!'s servers. Note:...
0 1010 posted 16 years ago by jlizarraga
The 'request' and 'response' objects are chock full of useful info. But console can't usually access them. Here's how: start the server with the -u option, insert a breakpoint where you would like to have access to the controllers/helpers/etc. Wh...
1 1090 posted 16 years ago by cczona
A very simple plug-in I wrote to make x number of columns equal height. Looks for the column with the biggest height then sets the rest to the same. I'm sure it can be made cleaner, will look into that later.
4 1272 posted 16 years ago by 1man
Instead of one element you can insert multiple at once: array($element1, $element2, $element3)
1 1240 posted 16 years ago by kurokikaze
6 924 posted 16 years ago by joeydi
you have to collect the filenames from 'find' in an input file then open the input in this script
0 931 posted 16 years ago by rowntreerob
Convert hexidecimal color codes (ie #C0C0C0) to decimal RGB (ie 255,255,255)
0 1186 posted 16 years ago by blackf0rk
If you have a component being bound from an ObjectDataSource (like a drop-down menu, or a grid view) and you wish to change the value's SelectParameters. Where # is which SelectParameter you'd like to change. If there's just one SelectParamter, defau...
0 914 posted 16 years ago by blackf0rk
Dynamically change the content of meta tags from the code behind. This allows you to feed the meta tags with content from a database or other dynamic content.
0 1000 posted 16 years ago by blackf0rk
2 5235 posted 16 years ago by blackf0rk
Sometimes you want to return a bunch of data from a table, but you want it coming back in a random order. Maybe it's for keeping some content on a home page fresh. Here's how:
0 841 posted 16 years ago by blackf0rk
If you're going to be using a common function throughout the Web site, you can include the function in your MasterPage and gain access to it from each aspx that inherits from this MasterPage; like so:
0 1234 posted 16 years ago by blackf0rk
Validating a decimal such as a measurement of time or currency (10.5 or 0.4). This function will return the correct number. If you feed in "10.5foo" the function will spit back 10.5. If you feed in "bar" the function will return nothing.
0 812 posted 16 years ago by blackf0rk
Assuming your DataSet (named, ds) is already populated with Data and contains only one table.
0 1587 posted 16 years ago by blackf0rk
It's important that the newPn var that you pass into the Convert.ToInt64 function is in the xxxxxxxxxx format and that no characters are present.
1 1435 posted 16 years ago by blackf0rk
Passing in a seed and your string will return an encrypted string. Pass in the same seed and the encrypted string again and it will return the original unencrypted string.
1 1164 posted 16 years ago by blackf0rk
If you need to get the HTML from a Web page to rip it, process it, and/or display it in the way you want, the following function will work for you.
0 1176 posted 16 years ago by blackf0rk
This function will parse out the Google Maps coordinates from a Google Maps link url like this one: http://maps.google.com/?ie=UTF8&ll=43.068888,-87.978516&spn=23.565589,33.925781&t=h&z=5. The coordinates in this URL are 43.068888,-87.978516.
0 1210 posted 16 years ago by blackf0rk
0 885 posted 16 years ago by smoover
1 ... 428 429 430 431 432 ... 554