Welcome To Snipplr
You searched for: http
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Code snippet prevents caching of the page by setting http header values and a LAST MODIFIED header to prevent google from caching too long. This should go into the page load event.
1
995
posted 16 years ago by jink
Administering more than one node at a time through the Drupal admin interface is like drinking a milkshake through a buckytube.
[How to use phpmyadmin and sql to perform mass operations on nodes](http://drupal.org/node/134535)
1
1037
posted 16 years ago by zachharkey
Based on some comments in [StackOverflow Question](http://stackoverflow.com/questions/95875/javascript-check-to-see-if-a-variable-is-an-object "How to check if a variable is an object")
3
1222
posted 16 years ago by jasonseney
This is the modified GWT HTML host page for your module. As you can see, the only modified element is the path to the GWT bootstrap script, the original declaration was the GWT 1.5 way, the new declaration is the [GWT 1.6 way](http://code.google.com/...
0
745
posted 16 years ago by salvadordiaz
Esta función devuelve un string aleatoreo con un largo aleatoreo, con un mÃnimo y un máximo.
El uso más común es solo especificar el largo máximo.
Especialmente útil para pruebas unitarias.
NOTA: depende de http://snipplr.com/view/14580/n...
1
844
posted 16 years ago by delm
https://www.chrisjmendez.com/2004/09/27/jquery-converting-all-the-items-in-a-select-element-into-a-string-array/
0
1344
posted 16 years ago by chrisaiv
this is how to automatically get short urls for your blog posts in wordpress,
What you need
is to decide which tinyurl service you will be using and get its api URL,
for example rinyurl.com , bit,ly, tr.im,
here are the api URLS for the mo...
0
1159
posted 16 years ago by nerdsane
I'll never learn how to use this Markdown system. Anyway, here is the fixed code based on my comment on the following page:
http://snipplr.com/view/14206/replace-spaces-with-underscores/
I'm sorry, I don't mean to hijack the code. :(
0
1101
posted 16 years ago by duniyadnd
First of all, for all Stackoverflow.com members who have seen my question about this snippet on Stackoverflow, yes I am the same person as WebDevhobo. Last time I asked a question about something I posted here I got a bucketload of comments saying I...
1
1336
posted 16 years ago by Vordreller
An easy way to launch an external process (http://docs.codehaus.org/display/GroovyJSR/Run+Sub-Process+Safely).
1
1125
posted 16 years ago by narkisr
Mac OS X creates files beginning with *._* to Samba shares when files on a Unix/Linux machine are accessed with a Mac. I use [Coda](http://www.panic.com/coda/) to access a Samba share on my development server at work. This is really annoying when c...
1
1310
posted 16 years ago by shaunchapman
This is my first ever bookmarklet. It's simple and could be tightened up but it works for me (FF3 Ubuntu 8.10).
Oh, by the way, what it does is load gmail (if you're signed in, which I always am) with a search for the unread messages (is:unread)...
0
793
posted 16 years ago by ThomasGHenry
ActionScript 3
bit.ly URL-shortening script for TextExpander that associates URLs with your bit.ly account
TextExpander is a great Mac tool that expands special abbreviations typed anywhere in the OS into useful snippets of text. One of the AppleScript snippets included shortens a URL in the clipboard using the bit.ly URL-shortening service. You copy the...
2
3511
posted 16 years ago by Todd
This snippet uses the as3corelib which you can download on this page:
http://code.google.com/p/as3corelib/
3
981
posted 16 years ago by publicbroadcast
Simple Mail Example.
Tags: SMTP, Mail, Java
[JavaMail (Sun)](http://java.sun.com/products/javamail/)
[JavaMail (Galileo)](http://openbook.galileocomputing.de/javainsel8/javainsel_18_012.htm#mj2a4110a634c82a3f676d8f87a50d6567)
1
1125
posted 16 years ago by mahome
Refer to [This snipplr](http://snipplr.com/view/13653/css-firstchild-test/), added head and body section, even Firefox won't match first-child
0
1041
posted 16 years ago by angusdev
You can get hostname from script environment - getenv("HTTP_HOST")
(?!'.$host.') matches URLs always except local links
0
932
posted 16 years ago by kossmoss
Use this to extract an HTML5 origin from a URI. $1 is the origin.
The square brackets are there to support IPv6 addresses.
Example:
var html5OriginRegex = /^([\w-]+:\/*\[?[\w\.:-]+\]?(?::\d+)?).*/;
"http://www.google.com:42/foo/bar/...
0
721
posted 16 years ago by Sephr
Affects <A> tags for links starting with $link
Example: LinkReplacer ($text, 'http://www.snipplr.com') affects to
<a href="http://www.snipplr.com">Snipplr</a>
and <a href="http://www.snipplr.com/blog">Snipplr Blog</a>
0
1072
posted 16 years ago by kossmoss
obviously change url. you'll get (better formatted) something like...
curl -o /dev/null -w %{time_total}\\n http://www.google.com
% Total % Received % Xferd Average Speed Time Time Time Current
D...
0
711
posted 16 years ago by nategood
<h2>POSH => HTML semántico</h2>
http://aprendiendoweb.com/2008/08/posh-html-semantico
<ol>
<li>Debe ser HTML válido</li>
<li>No se deben usar elementos de presentación como <b> o <i></li>
<li>Todos los estilos deben darse usando C...
2
748
posted 16 years ago by demixo
Clojsure composition in Groovy (functional style programing).
@http://www.ibm.com/developerworks/java/library/j-pg08235/index.html
0
980
posted 16 years ago by narkisr
PHP
Rewrite Drupal's File system paths to remove redundant sites/example.com (alternate settings.php method)
Alternate to <a href="http://snipplr.com/view/133530">this method</a>. Have not yet tested.
In settings.php, put this code:
0
910
posted 16 years ago by zachharkey
My [original post](http://drupal.org/node/84895) languished for years before someone pointed out a possible solution [here](http://drupal.org/node/53705).
The following user-submitted code may be useful in redirecting URLs for the /files directory...
0
938
posted 16 years ago by zachharkey
Creating a object that doesn't have any methods in Ruby (regular objects inherit methods from Object class), useful for Proxies that use method missing (http://onestepback.org/index.cgi/Tech/Ruby/BlankSlate.rdoc).
1
1314
posted 16 years ago by narkisr
Will return a string that has any matched URLs wrapped in `<a>` tags.
Example: `"This is a link to http://foobar.com . Please visit !"`
Becomes: `"This is a link to <a href='http://foobar.com'>http://foobar.com</a> . Please visit!"`
Note: Op...
2
5070
posted 16 years ago by jasonseney
include this snippet in your sites to force InternetExplorer 8 to display your site like InternetExplorer 7
In summary, IE7 compatibility support looks as follows:
IE=7
Display in IE7 Standards mode; Already supported in the IE8 Beta 1 relea...
3
1458
posted 16 years ago by tobaco
Here is a small function [[lobo235](http://www.netlobo.com/javascript_tooltips.html "Javascript Tool-tips")] wrote that will parse the window.location.href value and return the value for the parameter you specify. It does this using javascript's buil...
1
2783
posted 16 years ago by nelsnelson