Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 385 386 387 388 389 ... 552
1 1650 posted 17 years ago by radarseven
I recently found the need to run multiple CodeIgniter applications inside of a single codebase for development & test purposes. So, I rewrote a few lines of the primary index file (/index.php) to automatically route URLs like subdomain.domain.com to...
3 2328 posted 17 years ago by brettbergeron
Detect if an object exists in an array or detect existance of a key in an object
1 1791 posted 17 years ago by quickredfox
File.Basename - A library that provides unix-like tools 'dirname' and 'basename'
0 1541 posted 17 years ago by quickredfox
Remedial Javascript As Proposed by Douglas Crockford (http://javascript.crockford.com/remedial.html)
0 1721 posted 17 years ago by quickredfox
--
0 1906 posted 17 years ago by nico65
0 1631 posted 17 years ago by gerhardsletten
Sometimes I want simple tabs without all the packaging of jQuery UI with a theme. This does the job with just jQuery 1.2.6, and should work with later versions.
3 2358 posted 17 years ago by cyberhobo
Take the contens from a table in MySQL and display it in an email
2 1837 posted 17 years ago by jcroom
2 1879 posted 17 years ago by willemmulder
leittet alle domain.de (ohne www) auf www.domain.de weiter.
0 1687 posted 17 years ago by nico65
Great little bit of code for if you are rewriting URLs but then want the old GET URLs to rewrite to their rewritten URLs (phew). Good for telling Google where the new pages are with a 301 rather than getting both indexed. In this example, i had a...
0 1774 posted 17 years ago by roflman79
sku on magento frontend
0 1754 posted 17 years ago by nico65
This code will create a human readable string that will look more close to dictionary words, useful for captchas.
3 3181 posted 17 years ago by Mithun
This function converts URLs and e-mail addresses within a string into clickable hyperlinks.
2 2237 posted 17 years ago by Mithun
Sometimes you can't use an image button, you have to use a submit button, but you still want to hide the text and show an image instead. The width and height can be changed, of course. The point is that they are specified. Display:block is need...
1 3173 posted 17 years ago by jessibird
0 2087 posted 17 years ago by iTony
The tetex implementation of BibTeX, LaTeX's bibliography tool, forcibly breaks lines above a certain length (79 chars) by inserting % signs and line feeds, unless they can be broken between words. This is a problem when URLs are referenced, or if co...
0 2458 posted 17 years ago by deepsoul
/app/code/core/Mage/Newsletter/Model/Subscriber.php $this->sendConfirmationSuccessEmail();
0 1673 posted 17 years ago by nico65
0 1890 posted 17 years ago by dsntos
adapted from the fantastic „Learning jQuery 1.3“ book http://www.packtpub.com/learning-jquery-1.3/book
0 2068 posted 17 years ago by cfleschhut
0 1684 posted 17 years ago by kungfoo
Detects all external/outgoing links, adds class, & adds target = _blank. When using a strict doctype, this method is valid when using target manipulation.
1 1828 posted 17 years ago by dsntos
Name the source duplicate_remove.perl and open Terminal.app in the same directory, and write: perl duplicate_remove.perl <file-to-be-convertet>
0 1907 posted 17 years ago by gerhardsletten
1 ... 385 386 387 388 389 ... 552