Welcome To Snipplr


Everyone's Recent Snippets



1 ... 479 480 481 482 483 ... 552
YouTube offers a method for users and developers to embed video on their web pages. Unfortunately the code that they use doesn't validate. Use this function to make YouTube's embed code validate.
2 2621 posted 18 years ago by neal_grosskopf
3 2442 posted 18 years ago by johnloy
1 1653 posted 18 years ago by zb3k
This is as simple as it gets, basiclly this templates shows you how to mock an object methods to any other piece of code that you like (open objects at its simplest glory).
1 1804 posted 18 years ago by narkisr
2 1771 posted 18 years ago by iTony
https://www.chrisjmendez.com/2008/06/21/ruby-mixing-in-a-module-immediately-after-an-objects-singleton-class/
2 2099 posted 18 years ago by chrisaiv
Requires all Ruby source files in a given directory.
1 2071 posted 18 years ago by jccovey
1 2302 posted 18 years ago by tonic
the controllers view is setup s.t. it adds the mainView as a subview to its default view in the init method
4 3814 posted 18 years ago by jonathanbp
In summary, IE7 compatibility support looks as follows: IE=7 Display in IE7 Standards mode; Already supported in the IE8 Beta 1 release IE=EmulateIE7 Display standards DOCTYPEs in IE7 Standards mode; Display quirks DOCTYPEs in Quirks mode...
3 3856 posted 18 years ago by gbot
Firefox ignores the alt tag on images and uses the title tag whereas IE uses the alt tag. This javascript code copies the text in all image alts to the image's title. Best when placed at the footer of each page
1 2067 posted 18 years ago by ezerick
2 2418 posted 18 years ago by Juanje
CSS Diagnostics allows web designers and developers to highlight invalid HTML using CSS selectors. Say goodbye to the font tag by highlighting it in a large obnoxious border. It also has the ability to highlight 404 pages, old CSS classes and old Jav...
7 3939 posted 18 years ago by neal_grosskopf
0 1566 posted 18 years ago by johnloy
1 1929 posted 18 years ago by rwczippy
2 2013 posted 18 years ago by morroida
0 3328 posted 18 years ago by morroida
1 1880 posted 18 years ago by ezerick
0 1404 posted 18 years ago by 6e
3 2956 posted 18 years ago by Anthony
4 2927 posted 18 years ago by Anthony
5 2215 posted 18 years ago by iTony
REXML does not seem to have a 'lang' method, which is strange since lang is in the XML 1.0 Specification §2.12 'Language Identification', and in many other libraries. Because of Ruby's 'monkey patching', it's pretty easy to add - you just recursivel...
1 1657 posted 18 years ago by tommorris
Allow for easier editing of content by users who didn't make the site.
1 1755 posted 18 years ago by EvanL
6 1778 posted 18 years ago by blackabee
1 ... 479 480 481 482 483 ... 552