Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 336 337 338 339 340 ... 552
Con esto evitamos que un enlace que tengamos con 'href="#"' actue como tal y la pagina haga scroll hasta la parte superior.
0 1475 posted 16 years ago by jacinmontava
Count number of files in a directory
1 1914 posted 16 years ago by marcelodornelas
To show error in php.
0 2143 posted 16 years ago by rahijain
prevent errors on non-firebug browsers
2 1825 posted 16 years ago by wbednarski
Searches all array elements for a given substring. Returns an array of found key=>value pairs or false if not found.
0 1832 posted 16 years ago by lancemonotone
Use the l() in Drupal with an array('html' => TRUE) to get a linked image
0 1661 posted 16 years ago by karmacode
Use the l() in Drupal with an array('html' => TRUE) to get a linked image
0 1798 posted 16 years ago by karmacode
A little function I add to the base Page_Controller class that allows you to define what actions are explicitly SSL. It will put users in SSL when they access it and take them out of it when they navigate somewhere else. It is available in any cont...
0 1278 posted 16 years ago by dalethedeveloper
0 1675 posted 16 years ago by karmacode
Now that you have set up your ManyToManyField to use your intermediary model (Membership, in this case), you're ready to start creating some many-to-many relationships. You do this by creating instances of the intermediate model:
0 2005 posted 16 years ago by magicrebirth
Snippet provided by YomWeb.co.cc. YomWeb is a blog specially dedicated webmasters who are interested in coding, design and blogging. We are currently a new blog but have big plans for the blog. If you find any mistakes in our articles you can contact...
0 1562 posted 16 years ago by yomweb
This snippet is provided to you by YomWeb.co.cc. YomWeb is a blog specially dedicated webmasters who are interested in coding, design and blogging. We are currently a new blog but have big plans for the blog. If you find any mistakes in our articles...
0 1565 posted 16 years ago by yomweb
Run in the FireBug console, and copy the output. An odd class is included for row striping, and the number of items can be controlled via the for loop.
1 1919 posted 16 years ago by Jamie
This is the most simple example of a ComboBox created in AS3, based mostly on Adobe's example from http://help.adobe.com/en_US/ActionScript/3.0_UsingComponentsAS3/WS5b3ccc516d4fbf351e63e3d118a9c65b32-7fa9.html Inside the zip file you will find two...
0 3277 posted 16 years ago by Winkyboy
0 1985 posted 16 years ago by magicrebirth
Format a number so it is more humanly readable. It allows for setting the number of decimal places (inc. adding 0000s to the end) and separating thousands with a comma. Example usage: trace(numberFormat(1234.695, 2, true, false)); // Output:...
0 3029 posted 16 years ago by adrianparr
Instead of ~/.ssh/id_rsa.pub, you can choose any location on your local machine where your *public* key lives. You may need to adjust the file permissions on remote authorized_keys aftwterwards, depending on the configuration of the remote ssh serve...
0 2094 posted 16 years ago by berkes
This is just a note for myself, not my own code.
0 1223 posted 16 years ago by jgillman
This is a combination of two fixes from Michael at [WPEngineer.com](http://wpengineer.com/a-solution-for-the-wordpress-gallery "WPEngineer.com"), which removes the styles from the gallery output, and a follow-up comment by [Aaron Cimolini](http://wpe...
1 2328 posted 16 years ago by lancemonotone
Can be used on any machine with PERL installed. Just execute this script in the directory and it will remove .svn folders recursively
0 2260 posted 16 years ago by TEHEK
0 2033 posted 16 years ago by bradless
1 ... 336 337 338 339 340 ... 552