Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 346 347 348 349 350 ... 553
A small collection of the most wanted string-functions in ASP / VB.
1 1704 posted 16 years ago by choasis
Just replace the squared brackets with the correct values.
1 1919 posted 16 years ago by choasis
Place in your functions.php file and call it in your theme like this: <?php>
1 2836 posted 16 years ago by afj176
Modified version of the script created by Dave Stevens, Enables the user to input their credentials on a webpage rather than having to change the actual php script code. Changes: Changed $user,$pass,$term This is a modified script, the original...
0 1772 posted 16 years ago by jonathonmaguire
| convert -quality 85 - "$4" - Если не установлен конверт можно закоментить
1 1140 posted 16 years ago by anonymous
The Google search URL accepts two fields, `as_oq` and `as_eq`, which give additional required or forbidden keywords for the search. This allows to create search forms which add preset keywords. In the search form below, one of the keywords test, re...
0 1529 posted 16 years ago by deepsoul
This function validate a mail address in a smart way: if the address to validate has a correct syntax (checked with regular expression), it tries to connect to the mx server of the address. This means that the program have to use the smtp protocol to...
3 2082 posted 16 years ago by ginoplusio
I used to directly inject javascript and CSS into my HEAD elements just like you see in all of the tutorials online and in books. Recently I decided to try a different approach, and I feel this is more in keeping with the ruby and rails "declaration"...
0 1741 posted 16 years ago by sgtrock
I used to directly inject javascript and CSS into my HEAD elements just like you see in all of the tutorials online and in books. Recently I decided to try a different approach, and I feel this is more in keeping with the ruby and rails "declaration"...
0 1654 posted 16 years ago by sgtrock
This function calculates distance with the Haversine formula, this formula assumes that our Earth is spherical, but it isn’t since it’s more like a big orange fruit also compresses at poles. I’ve read that this function has an error about + o â...
3 7500 posted 16 years ago by ginoplusio
When you show the coordinates of a point, it’s sometimes better to show them as degrees and not as deciaml (even if decimal is simpler). Each of the two coordinates can be converted with the same function. In the function call the “tipo” is the...
1 1718 posted 16 years ago by ginoplusio
0 1089 posted 16 years ago by level09
0 1116 posted 16 years ago by wilburhimself
0 1203 posted 16 years ago by wilburhimself
0 2285 posted 16 years ago by wilburhimself
This script displays the current date inside a form via 3 prefilled drop down menus (day, month, year). The visitor can then specify a different date if he/she wants. You can have multiple drop down dates within the same form as well.
0 1475 posted 16 years ago by kanampo
I never can remember the exact name of the exception to call in self.down for a migration that cannot be undone. So I decided to come up with something easier to remember. This feels more "ruby-ish" and "rails-ish" to me, and so far it works just fin...
0 1328 posted 16 years ago by sgtrock
Template includes optional changes from the default EE RSS template that I added as a result of various articles, the RSS 2.0 spec and by examining the feeds of major professional news sites. For more information see my blog post (url above). Tested...
1 1388 posted 16 years ago by mahalie
This template removes seconds from date fields used in the <item> which cause multi-posting (on each edit) of entries. These are the minimal fixes to the current default EE RSS Template, I've also uploaded an [improved template](http://snipplr.com/vi...
0 1336 posted 16 years ago by mahalie
Turn off auto kerning to get rid of that goddamn line break that happens on multiline text inputs!
0 1631 posted 16 years ago by creativelifeform
If you have not already been writing your border-radius statements with progressive enhancement in mind, now is most definitely the time to do it.
3 1492 posted 16 years ago by justinseiter
1 ... 346 347 348 349 350 ... 553