Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Will return the host name that the site is running on. Example:
`http://mysite.com` or `http://myspecialsite.com:102`
0
1129
posted 13 years ago by jasonseney
This is my own (compact) JS library which contains a variety of methods - cookies, (fast) sorting of tables,paragraphs, etc., highlighting rows, moving elements up or down, converting strings to dates, updating a clock etc.. Include the library and a...
0
517
posted 13 years ago by AndyG
"Javascript module pattern emulates the concept of classes in such a way that we're able to include both public/private methods and variables inside a single object, thus shielding/namespacing particular parts from the global scope."
When inheritanc...
0
932
posted 13 years ago by coprolit
A code snippet for review by StackOverflow.com members.
I would appreciate any help that'll aid me in fixing the bugs in the table (they are described in the StackOverflow question at http://stackoverflow.com/questions/5321646/buggy-css-for-an-html-...
0
1140
posted 13 years ago by sahwar
Encode a Tweet from a Twitter search query wrapping all hash tags, user names and urls with herf entities with one function call
0
635
posted 13 years ago by ninjaparade
You need to register this at the top of the page (see code below). Remember you can do this on a layout page as well, instead of the master page.
Then place the PublishingWebControls:EditModePane tag inline (see below). The ID can be anything...
0
613
posted 13 years ago by rumremix
In a recent iphone webapp I developed, I needed to use safari's Local Database feature. The webapp needed to make a few SQL Queries while performing other actions.
The local database data transaction process makes it difficult to make queries and...
0
891
posted 13 years ago by cmndo
Automatically use jQuery to Open External Links in New Window (checking domain first).
3
1150
posted 13 years ago by mindshare
Hello,
Here is snippet to show wordpress posted date using html5 time tag.
0
690
posted 13 years ago by idragons
Clean up the crap in wp_head(). Put it in yo functions file.
1
872
posted 13 years ago by vagrantradio
Resize iframe height. This means if the content of your iframe is longer than the iframe height, and the iframe doesn't have a scrollbar, you can resize the height of the iframe so the content is viewed.
0
752
posted 13 years ago by kodomonster