Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 346 347 348 349 350 ... 552
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 2452 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 2358 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 8280 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 2277 posted 16 years ago by ginoplusio
0 1529 posted 16 years ago by level09
0 1554 posted 16 years ago by wilburhimself
0 1696 posted 16 years ago by wilburhimself
0 2804 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 2058 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 1843 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 1929 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 1852 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 2260 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 2079 posted 16 years ago by justinseiter
There are free exchange rates data that are easy to retrieve and parse, here is the code of a mini webbot written in ASP that goes out on Bank of Italy site, get the exchanges rates and print them.
2 2253 posted 16 years ago by ginoplusio
1 ... 346 347 348 349 350 ... 552