Welcome To Snipplr


Everyone's Recent Snippets



1 ... 492 493 494 495 496 ... 553
Note: most of these will be available to the shell and Rails' console too.
2 1592 posted 17 years ago by cczona
"When using haml, an HTML tag is represented using %tagname, but in the case of an HTML tag with attributes, the representation is %tagname{:attribute => value}. It turns out there must be no whitespace between %tagname and {:attribute => value}....
1 1201 posted 17 years ago by cczona
0 1064 posted 17 years ago by iTony
"The new naming scheme for template (eg. .html.erb) does not seem to work for partials. When using :partial => 'form' a filename "_form.html.erb" is not recognized. " Rails now requires the partial to be referenced by dotted format
1 1263 posted 17 years ago by cczona
count .htm or .html files in the directory. use ls and grep command.
1 1335 posted 17 years ago by kyokutyo
Consolidate all your various stylesheets into one and cut down on requests to your server by placing your screen, print & handheld stylesheets into one stylesheet
1 1305 posted 17 years ago by neal_grosskopf
Note that the comment is part of the code here. IE 5+ (including Mac) will evaluate to true by using conditional compilation.
0 1315 posted 17 years ago by cczona
1 1073 posted 17 years ago by soxiam
Makes the form field background yellow and the border red when it is the active field. Works in most browsers except the usual lame ones (IE5.5 & 6).
1 1164 posted 17 years ago by will
ExpiresActive tells the apache2 to use the expires module. ExpiresDefault specifies the expire date for all mime-types in this directory. ExpiresByType specifies the expires date for the specified mime-type in this directory.
2 1603 posted 17 years ago by CharlyBr
1 1464 posted 17 years ago by CharlyBr
0 831 posted 17 years ago by sou
recover to normal speed with /sbin/ipfw delete 100 /sbin/ipfw delete 200 ... or reboot
0 1513 posted 17 years ago by zingo
See also p. 348 ("Invoking a Method") of Pickaxe 2nd edition
1 1248 posted 17 years ago by cczona
„Versioning and Cross-document InteractionInternet Explorer 8 introduces the IE8 standards mode by default—this lets Web designers use the latest rendering features available in Internet Explorer 8. In addition to layout changes, IE8 standards mo...
3 2123 posted 17 years ago by localhorst
https://www.chrisjmendez.com/2008/03/23/mysql-commands-i-wish-i-could-remember/
9 1667 posted 17 years ago by chrisaiv
Use this to start of new python applications.
1 1391 posted 17 years ago by kangell
[directory] ├index.php //this snippet ├imageA.jpg ├imageB.gif └imageC.png This snipet displays the thumbnail of the picture file that exists in the same directory. When the thumbnail image is clicked, the original size image is...
6 1755 posted 17 years ago by kyokutyo
I notice that a lot of database driven websites make easy mistakes by not checking for plural words. An example might be "2 vote" or "1 votes". Here is an example of a function using ASP to check for plurals.
1 1810 posted 17 years ago by neal_grosskopf
IE7 and IE8 support “No Add-ons Mode,” a troubleshooting mode. When you run IE this way, no 3rd party code runs... You can start No Add-ons Mode in a few ways: (To exit No Add-ons Mode, simply close that browser window.)
0 1329 posted 17 years ago by cczona
1 ... 492 493 494 495 496 ... 553