Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 372 373 374 375 376 ... 553
[Credit - Sam Allen, Dot Net Perls](http://dotnetperls.com/remove-html-tags)
2 2497 posted 16 years ago by jasonseney
1 1845 posted 16 years ago by jasonseney
A style of code reuse. Breaking methods (in this case MVC controller) into very small reusable atomic chunks that either perform an operation then return an ActionResult OR return null, then using with the null-coalescing operator.
0 1756 posted 16 years ago by jmcd
0 1492 posted 16 years ago by sennesaelium
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 1761 posted 16 years ago by jdbartlett
Example markup: <p>This is the first part of the text <a class="toggle">[+]</a><span>this part is hidden until clicking the toggle link.</span></p> The script will show and hide text when the toggle link is c...
1 1619 posted 16 years ago by mikemetcalf
1 1677 posted 16 years ago by donatkinson
0 1603 posted 16 years ago by donatkinson
Simple [SoundManager2](http://www.schillmania.com/projects/soundmanager2/doc/download/#latest "Download SoundManager2") example (uses jQuery)
0 2021 posted 16 years ago by chrisdpratt
Simple way to configure the JVM to use the proxy in the network
1 1643 posted 16 years ago by neozilon
This snippet is usable for telephone number normalization. It supports re-mapping of misused alphabetical characters (e.g. i for 1) and some other clean up stuff... Take a look. Update, 2009-10-02: added function to create a corresponding MySQL RE...
1 1922 posted 16 years ago by dreadwarrior
0 1458 posted 16 years ago by alexaivars
0 1633 posted 16 years ago by cbek
1 1207 posted 16 years ago by xathin
Escribir archivo de texto en directorio
0 1544 posted 16 years ago by pardalsalcap
1 1736 posted 16 years ago by thehamilton
2 2225 posted 16 years ago by thehamilton
The shell command which provides documentation for Ruby's classes and methods is:
0 1575 posted 16 years ago by deepsoul
Sample log line: [INFO] 2009-03-06 20:47:35 | controller::bla | user: vincentvega | ip: 127.0.0.1
0 1898 posted 16 years ago by benjay
Must have a field named Weight. The more Weight the more often the record is selected. Weight should be an integer between 1 and 10.
1 1938 posted 16 years ago by BFTrick
1 1338 posted 16 years ago by benpjohnson
. must be escaped using \ . It means something in regexp
0 1983 posted 16 years ago by godstroke
1 ... 372 373 374 375 376 ... 553