Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 479 480 481 482 483 ... 553
0 1222 posted 17 years ago by narkisr
Place this code in the template.php file of your custom Zen sub-theme to create a friendly reminder that this site uses their LDAP password. In this example, we use Novell Directory Services as our LDAP provider.
1 1301 posted 17 years ago by tgbdad
Use Apache's mod_expires to explicitly set the expiration of a file by it's type. This will enable to browser to cache these static assets and greatly increase performance.
1 1940 posted 17 years ago by cbrant
This is like a cms for a stylesheet - includes all files to make a working xhtml/css demo
1 1467 posted 17 years ago by perthmetro
Imports data from CSV (excel-compatible format) into MySQL. Also check the mysqlimport utility and the complementary SELECT ... INTO OUTFILE.
4 2019 posted 17 years ago by jarnaldich
This will count sentences that end in . or ? or ! and have a space after them.
1 2975 posted 17 years ago by evanwalsh
This HTML/CSS shows how to make text inputs with rounded corners in the most basic way (it doesn't expand according to its width).
6 2860 posted 17 years ago by reneolivo
(Supported by JavaScript, maybe other languages)
3 6889 posted 17 years ago by wizard04
1 1326 posted 17 years ago by wesbaker
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 1962 posted 17 years ago by neal_grosskopf
3 1780 posted 17 years ago by johnloy
1 1089 posted 17 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 1259 posted 17 years ago by narkisr
2 1224 posted 17 years ago by iTony
https://www.chrisjmendez.com/2008/06/21/ruby-mixing-in-a-module-immediately-after-an-objects-singleton-class/
2 1475 posted 17 years ago by chrisaiv
Requires all Ruby source files in a given directory.
1 1455 posted 17 years ago by jccovey
1 1685 posted 17 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 3045 posted 17 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 3114 posted 17 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 1508 posted 17 years ago by ezerick
2 1730 posted 17 years ago by Juanje
1 ... 479 480 481 482 483 ... 553