Welcome To Snipplr
You searched for: http
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Sends as XHTML 1.1 + MathML if supported, falls back to XHTML 1.1 if supported, or falls back to HTML 4.01 Strict.
Mixed two separate scripts:
http://www.workingwith.me.uk/articles/scripting/mimetypes
http://golem.ph.utexas.edu/~distler/blog/arc...
2
1197
posted 19 years ago by rolandog
Note: This doesn't work in multi-threaded environments, check http://en.wikipedia.org/wiki/Singleton_pattern#C.2B.2B
Singleton class model
then:
SingletonClass *pSC = SingletonClass::get_singleton_instance();
pSC->any_public_function();
or: Si...
4
2784
posted 19 years ago by yuconner
This is test script of Google Map API.
How to use this script is as follows.
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<style type="text/css">
v\:* {
behavior:url(#default#VML)...
5
1590
posted 19 years ago by tomute
You should edit your WordPress plugin so that the $source variable at the end shows this value. Though it is a shame that code can't have an 'ol' as a childNode, and neither can the pre element. Couldn't find any way of making it all fit: http://lear...
3
1870
posted 19 years ago by rolandog
I use this object verry often, so that I only need to pass one object as parameter on any function. No need to wory when we refactore the function
Usage:
$var = new open();
$var->url = 'http://www.world.com';
$var->title = 'Testing Site';
ech...
1
1496
posted 19 years ago by ekobudisetiyo
Directions: be sure to set to absolute paths every image location from your litebox-1.0.js and lightbox.css files... and, replace the setInnerHTML function with this one...
http://www.doknowevil.net/litebox/
1
1513
posted 19 years ago by rolandog
Open a new window without using target="_blank" for XHTML 1.1.
Need jQuery Framework : http://jquery.com/
15
4736
posted 19 years ago by walepinski
For a working demo in application/xhtml+xml or text/html, go to:
http://rolandog.com/archives/2006/07/10/litebox-demasiado-bueno-para-ser-cierto/
You should delete the multi-line comments after completing the setup, some old browsers will complai...
3
2091
posted 19 years ago by rolandog
A fairly DRY way to test for required attributes of a model. It's sort of an alternative to fixtures. It breaks the one-assertion-per-test rule that some people favor. Drop in your unit test and edit as necessary.
A better (yet not quite perfect)...
3
2539
posted 19 years ago by tjstankus
Great little flash player for playing FLV files. Code below simply adds them to your web page. Remember to add 20 pixels to the height="" attribute to allow for the player controler.
For the player goto: http://www.jeroenwijering.com/?item=Flash_Vid...
39
13830
posted 19 years ago by 1man
Select all checkbox in the specific context.
Need jQuery Framework : http://jquery.com/
12
1645
posted 19 years ago by walepinski
StripTables Script.
Need jQuery Framework : http://jquery.com/
6
1280
posted 19 years ago by walepinski
Greatly speeds up a slow Safari by purging any cached icons which have not been accessed in the past 30 days. Works well as a cron job.
From http://www.macosxhints.com/article.php?story=20040323144305318
2
2303
posted 19 years ago by Roshambo
reference:
\n
http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/classes/Net/HTTP.html
http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html
7
2925
posted 2026 years ago by aravet
Esta funcion toma valores del espacio global $HTTP_*_VARS desde un array
en la llamada a la funcion, y si existen y tienen contenido, las registra
como globales para que puedan ser accedidas a continuación.
Debe recibir una lista de elementos en l...
1
1496
posted 19 years ago by Navegante
Una manera sencilla y muy limpia para utilizar tamaños de fuentes relativos y que todos los navegadores muestren el mismo tamaño de letra.
Solo hay que asignar al "body" un tamaño de letra en "%" y luego al resto de elementos asignarle otro tam...
12
2729
posted 19 years ago by Eloi