Welcome To Snipplr
You searched for: http
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This code allows you to track each step of Magento's One Page Checkout in Google Analytics. I installed it at the bottom of my `checkout/onepage.phtml` template file. Once installed, you can set up a funnel for the following:
* `/checkout/onepage/...
0
954
posted 15 years ago by jdbartlett
Simple [SoundManager2](http://www.schillmania.com/projects/soundmanager2/doc/download/#latest "Download SoundManager2") example (uses jQuery)
0
1108
posted 15 years ago by chrisdpratt
Sometimes, the first or last block in a region needs to be styled different than the rest. This solution do this in simple way for Drupal 6.
(originaly code from [email protected]: http://drupal.org/node/293188#comment-1282186)
2
977
posted 15 years ago by Fake
Some valid UTF-8 characters are illegal in XML:
http://www.w3.org/TR/REC-xml/#charsets
This statement strips them from your strings.
0
2615
posted 15 years ago by jdbartlett
Some times you need to accept some url as input but users seldom add http:// to it, this code will add http:// to the URL if it’s not there.
1
1044
posted 15 years ago by paulgrenwood
Summarised snippet of Natbat's article: http://natbat.net/2009/Jun/10/styling-buttons-as-links/
Any link that that initiates an action, rather than just changing a page should semantically be a form with a submit button not a l ink. However you ca...
3
1494
posted 15 years ago by PeteW
I modified this helpful snippet: http://snipplr.com/view/9904/aspdropdownlist-us-states-abbreviated/ to work for the Telerik RadComboBox control.
0
986
posted 15 years ago by sonofabit
In IE6 the padding applied to input boxes can be incorrectly rendered showing no difference in the height of the box. Adding "overflow:visible" seems to fix it.
Referenced Source: http://stackoverflow.com/questions/561904/can-you-tweak-the-left-an...
1
947
posted 15 years ago by benjaminpearson
This snippet is just an upgrade to the "http://snipplr.com/view/7396/php-file-extension-case-changer/" code. This particular code works on image files... although you can just change this line [if (preg_match("/(jpg|gif|png|bmp)/",$ext)) ] to target...
0
1536
posted 15 years ago by el-artiste
see http://www.undolog.com/2009/08/21/impedire-la-propagazione-degli-eventi-con-jquery/ for detail
0
1073
posted 15 years ago by gfazioli
This is an incomplete color spectrum because cos waves will not reach all the colors. For a proper graph refer to this wiki page http://en.wikipedia.org/wiki/HSL_color_space
1
816
posted 15 years ago by forchid
This regular expression will match almost all valid email addresses. Omits email addresses containing double-quotes and square brackets, which while valid according to [RFC 2822][rfc2822], are almost never used.
[rfc2822]: http://tools.ietf.org/ht...
2
1242
posted 15 years ago by chrisdpratt
To make the menu work in IE6 (which doesn't support the :hover pseudo element on anything but links and tables), the IE6-specific CSS calls on [Whatever:hover][whatever]. If using [Dean Edwards' IE7-js][IE7-js], this is unnecessary as his script fixe...
4
1083
posted 15 years ago by chrisdpratt
This depends on [bibout](http://snipplr.com/view/19515/bibout/). In TextMate, set $TM_LATEX_BIB to point to your bibtex file, and create a Preference file in your markdown (or pandoc) bundle, containing the first line of the snippet. Create another P...
0
1631
posted 15 years ago by dsanson
Ever needed to download a bunch of files, but annoyed by having to copy them all to Speed Download? This is for you..!
http://rapidshare.com/files/131035061/file1.rar
http://rapidshare.com/files/131049211/file2.rar
http://rapidshare.com/files/...
0
871
posted 15 years ago by Wendelboe
<p>Cross-browser compatible especially for IE6/7 and makes use of CSS sprites for faster downloading. Download file <a href="http://johnimbong.com/blog/wp-content/uploads/2009/09/curves.zip">curves.zip (75 bytes)</a> which contains the CSS sprite nee...
1
819
posted 15 years ago by enchance
Variable/Parameter Discussion :
msg = Do you want to display a message box if you have the current version? (true/false)
currentversion = The version of the program
txtdocumentaddress = The text document web address containing the most updated ve...
2
1110
posted 15 years ago by brandonio21
Sometimes you just need to mask a script or reject a user from a page this can be done effortlessly using a single line of code. Header location will allow you to redirect a user quickly and without them having any control over the action.
A good...
1
925
posted 15 years ago by scopefragger
Easy check (:
**UPD**
You can just use [version_compare()](http://ca.php.net/manual/en/function.version-compare.php) function.
1
984
posted 15 years ago by kirik
e.g.
<pre><code>
$ twlogmerge.py twitter-log-user-dir
read file: twitter-log-user-dir/page001.xml
get status: id: 123456789
append status: accum.:1234
...
append status: accum.:3456
write file: twitter-log-user-dir-marged-20090828-130146.xml...
0
966
posted 15 years ago by mustam
This is xslt file for twitter-logged xml file.
* cf. [Backup my twitter-log](http://snipplr.com/view/18925/backup-my-twitterlog/)
* cf. [Merge twitter-logged files into one xml-file](http://snipplr.com/view/18928/merge-twitterlogged-files...
0
1295
posted 15 years ago by mustam
e.g.
<pre>
$ twlog.py user
twitter account name: user
Now logging start, take several times. r u OK? [y/N]: y
DEBUG: make dir: twitter-log-user
DEBUG: get log: page=1
DEBUG: new tweet: 21, accum. tweet: 21
DEBUG: remain hits: 149
DEBUG: writ...
1
830
posted 15 years ago by mustam
From Liviu HolhoÅŸ - Blog
http://blog.liviuholhos.com/javascript/add-a-favicon-near-external-links-with-jquery
4
1522
posted 15 years ago by batamire
An example solution for the 'insert-checkin-template exercise listed here: http://stackoverflow.com/questions/41522/tips-for-learning-elisp/59589#59589
It generates a "pretty" check in notice to be emailed, and also generates a line you can cut/pa...
0
1134
posted 15 years ago by bigfaceworm
An example solution for the 'insert-code-template exercise listed here: http://stackoverflow.com/questions/41522/tips-for-learning-elisp/59589#59589
1
1204
posted 15 years ago by bigfaceworm
An answer to the 'cycle-special-files exercise listed here: http://stackoverflow.com/questions/41522/tips-for-learning-elisp/59589#59589
0
1193
posted 15 years ago by bigfaceworm
Answer to one of the examples here: http://stackoverflow.com/questions/41522/tips-for-learning-elisp/59589#59589
0
1235
posted 15 years ago by bigfaceworm
http://code.google.com/p/jquery-jtwitter/ for examples.
3
1037
posted 15 years ago by jonniespratley
http://code.google.com/p/jquery-jtwitter/ for examples.
2
1068
posted 15 years ago by jonniespratley