Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Many examples that show how to use the header() function of PHP
3
1065
posted 17 years ago by localhorst
find command just returns a list of HTML files that have 'search_str' in it, vim takes a list of files.
0
906
posted 17 years ago by mandric
Para usar el interface builder con el iphone hay que crear una vista o una ventana, guardarla dentro del proyecto, y meter esta lÃnea en appdelegate en applicationDidFinishLaunching.
0
1169
posted 17 years ago by buscarini
Note: most of these will be available to the shell and Rails' console too.
2
992
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
878
posted 17 years ago by cczona
"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
904
posted 17 years ago by cczona
count .htm or .html files in the directory.
use ls and grep command.
1
889
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
924
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
926
posted 17 years ago by cczona
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
840
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
902
posted 17 years ago by CharlyBr
recover to normal speed with
/sbin/ipfw delete 100
/sbin/ipfw delete 200
... or reboot
0
1106
posted 17 years ago by zingo
„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
1337
posted 17 years ago by localhorst