Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 361 362 363 364 365 ... 553
The original string (str) will be changed after calling this function, so if you need it make a copy of it.
0 1497 posted 16 years ago by Menda
0 1437 posted 16 years ago by gd6d
provide file via URL var, and script will grab it & force download. Take a look at code, and add some of your filetypes if required
2 4254 posted 16 years ago by acosonic
0 1584 posted 16 years ago by yakafokon
run the command in a terminal window restart the computer (... I didn't find another way so that the command take effect)
0 1424 posted 16 years ago by yakafokon
As you can probably see I use the Sociable plugin on this blog. I recently realized that the Digg link was broken. Here is the fix:
0 1595 posted 16 years ago by captbaritone
insert in user TSconfig
0 3075 posted 16 years ago by quadratliter
insert in User TSconfig
0 3345 posted 16 years ago by quadratliter
0 892 posted 16 years ago by remcotolsma
These statements convert a date/time field into just a date or a time field
2 1748 posted 16 years ago by highlyevolved
I first posted this code on my http://sitefromscratch.com site, but I decided to repost it up here on snipplr.com with some of the most recent modifications I've made. This code validates through W3C Strict XHTML Standards.
14 3760 posted 16 years ago by smoothdzion
When I use the 960 Grid this is the code I use along with a CSS Reset. I really like Blueprint's default HTML Element styles, but I like the grid of 960.gs. This is a mashup of the code.
2 1274 posted 16 years ago by smoothdzion
Needs the BeautifulSoup module.
0 676 posted 16 years ago by taec
Lee Brimelow show's how to smooth an image that is loading from Flickr.
1 1373 posted 16 years ago by chrisaiv
1 1022 posted 16 years ago by benpjohnson
This code will allow you to have a full screen iframe with a header like a lot of sites do when navigating outside their site or featuring templates and things. Reference your CSS however you want. The HTML is necessary how it is, but add any addit...
1 2493 posted 16 years ago by smoothdzion
In order to track links out Google requires you add this snippet of JavaScript to your anchor(a) tag. Replace /G1/example.com with whatever you want to use to identify the link.
1 1417 posted 16 years ago by smoothdzion
1 1419 posted 16 years ago by nate63179
Reset that I use for all my projects. I've added a class '.ib' at the end to easily add inline-block styling to any element.
1 1269 posted 16 years ago by smoothdzion
First value takes empty input values and adds 'Enter Value'.<br> Second snippet removes 'Enter Value' when input is focused.<br> Third snippet re-adds 'Enter Value' if the value is left blank.
2 1573 posted 16 years ago by smoothdzion
1 2219 posted 16 years ago by nefd
Allows custom background images for submit buttons in ie6
1 2032 posted 16 years ago by flicity
0 1193 posted 16 years ago by T1tan
converts a number "v" to a float number and formats the string it with "d" decimals, used on input type text onblur="parseFloatString(this.value,2);"
0 1792 posted 16 years ago by ginoplusio
- fields on db with utf8_general_ci collation - make this query after any connection - put meta charset utf8 - read and write strings without problems
0 1249 posted 16 years ago by ginoplusio
0 1309 posted 16 years ago by shabbar
source for perl file that is step 2
1 1362 posted 16 years ago by rowntreerob
1 ... 361 362 363 364 365 ... 553