Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 475 476 477 478 479 ... 553
Magic Quotes is a great feature of PHP but sometimes it can just get annoying. It's simple enough to turn it off at the .ini and restart apache but here's a quick .htaccess workaround
2 1923 posted 17 years ago by aristoworks
This is a simple example of how to read and write XML that includes reading attributes and nodes.
1 1643 posted 17 years ago by donkeykong
英語のタイトルが適当な英訳なので、誰かOK/NGを教えてください。
1 2047 posted 17 years ago by octech
1 1734 posted 17 years ago by sjtai
Been wanting to made one of these for a while and finally I got round to it. For some examples please visit the post: http://www.dom111.co.uk/blog/coding/db/8 Any comments suggestions appreciated. CreativeCommons ShareAlike
3 3172 posted 17 years ago by dom111
Remove all the keys of the application’s preferences file from ~/Library/Preferences with Cocoa’s NSUserDefaults class.
2 2386 posted 17 years ago by zingo
Place this in your ~/.bash_profile then type tab in your terminal window to see some magic happen.
0 1603 posted 17 years ago by zingo
Change only $start variable with your start year. This very simple code will display two dates the next year like this : © Copyright 2008 - 2009, All Rights Reserved. and so on...
1 1426 posted 17 years ago by Pat64
1 1152 posted 17 years ago by ishkur
This will reset your style properties to the default values, specific to an element and its children. Here are the all the properties that need to be set to default that also don't break modern browsers.... or less then modern, like IE 4/5.
0 10171 posted 17 years ago by marcusrosentrater
This command lists all the differences that were made between two revisions in SVN.
2 1949 posted 17 years ago by narkisr
Reset PHP script time limit
4 3551 posted 17 years ago by jdstraughan
This will create a general site blog teaser list at /blog. It requires a cck type named blog. This view also generates an RSS feed for the blog. This is compatible with Views1 for Drupal 5.
2 1609 posted 17 years ago by shrop
1 1423 posted 17 years ago by jamesming
A useful AWK one liner, see http://student.northpark.edu/pemente/awk/awk1line.txt for some more
1 1536 posted 17 years ago by narkisr
1 1657 posted 17 years ago by Juego
example code only... save to [path.to.profile]/searchplugins/
1 1547 posted 17 years ago by rwczippy
CSS multi columns layout
3 2005 posted 17 years ago by Ashung
Two functions. 1) Find the string between characters. 2) Create array of strings found between two characters.
1 1652 posted 17 years ago by jamesming
0 1209 posted 17 years ago by fredaudet
0 1181 posted 17 years ago by fredaudet
9 2815 posted 17 years ago by fredaudet
2 2053 posted 17 years ago by fredaudet
1. Make sure the following environment variable is set: WinXP: HOME=C:\Documents and Settings\*username* Vista: HOME=C:\Users\*username* 2. Create an .irbrc file in %HOME%: $ cd %HOME% $ touch .irbrc If you don't have...
1 1693 posted 17 years ago by charlesroper
1 ... 475 476 477 478 479 ... 553