CodeCollector.net

The best way to share and discover code snippets!

Code Collector Pro Header Image

Collections

Collections are groups similarly related code snippet groups. For example our first two collections are for Rapidweaver and Wordpress with more coming soon. Collections are based 100% on user demand, by submitting more snippets for a given topic we are likely to make a collection around it.

Share to everyone

Share your discovered snippets or snippets from your library through any social network (Twitter, Facebook, Google+, you name it).

Access from anywhere

Using our responsively designed website, you can access your snippets from anywhere and pretty much any device (mobile, computer, tablet, web), all you need is a internet connection.

Tightly Integrated

CodeCollector.net has tight integration with Code Collector Pro, the Mac based Snippet manager. You can easily share and backup your snippet collection. Once they are in the cloud they are accessible from anywhere with a connection and browser. More Info »



Latest Snippets

Language: Objective-C
Tags: No Tags
Submitted By: vijayhirpara
animate.css - Snippet icon animate.css
  1. @charset "UTF-8";
  2.  
  3. /*!
  4. Animate.css - http://daneden.me/animate
  5. Licensed under the MIT license
  6.  
  7. Copyright (c) 2013 Daniel Eden
  8.  
  9. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis
See the complete snippet
Language: Other
Tags: No Tags
Submitted By: ccp
Language: Other
Tags: No Tags
Submitted By: deryckj
FMO space_check Audit - Snippet icon FMO space_check Audit
  1. (
  2. echo "Node,Filesystem,Limit,Callout";
  3. pdsh -Rexec -w \
  4. $( sqlquery "select system_name from hosts_database where audit_ind = 'y' and system_name like 'fmo%'"| xargs -s1984| tr ' ' ',' );
  5. ssh %h '
  6. GIGN="^Filesystem|^/cdrom|^/dev|^/devices|^/etc/globalzone|^/platform|^/proc|^/wpars|^/zones";
  7. GSYS="/ /dev /director /etc /etc/globalzone /lib /log /opt /platform /rootbackup /rpool /sbin /tmp
See the complete snippet
Language: Shell Script
Tags: No Tags
Submitted By: eroux
Create l2authservers.cf - Snippet icon Create l2authservers.cf
  1. LOC=$( cat /etc/host-database| cut -d':' -f4| cut -c1-3 );
  2. NODE=$( uname -n );
  3. CONF="/tmp/l2authservers.cf";
  4. SPRI=32;
  5. RPRI=32;
  6. [ "$LOC" = "SDC" ] && SPRI=64 || RPRI=64;
  7.  
  8. printf "#\n# Generated %s file for %s in %s\n#\n" "${CONF}" "${NODE}" "${LOC}" > "${CONF}";
  9. printf "# Format:\n#\tserver.domain.lan:weighting(0-127):active(0|1)\n#\n" >> "${CONF}";
  10. printf "rccnet2.standardbank.co.za:%s:1\njccnet2.
See the complete snippet
Language: Shell Script
Tags: No Tags
Submitted By: eroux
HTML 4.01 Transitional - Snippet icon HTML 4.01 Transitional
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2. "http://www.w3.org/TR/html4/loose.dtd">
  3. <html lang="en">
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <title>untitled</title>
  6. </head>
  7.  
  8. </body>
  9. </html>
See the complete snippet
Language: HTML
Tags: No Tags
Submitted By: wufs
Getting Started - Snippet icon Getting Started
  1. Welcome to Code Collector Pro. Using Code Collector Pro is pretty simple. To add or remove a snippet simply click on the toolbar icons above. To add a group or smart group use the buttons at the bottom of the source list. You can edit snippet details by bringing up the snippet info window from the window menu.
  2.  
  3. We've included some snippets and groups to get you started
See the complete snippet
Language: Other
Tags: No Tags
Submitted By: wufs
Objective-C Starter - Snippet icon Objective-C Starter
  1. #import <Foundation/Foundation.h>
  2.  
  3. int main (int argc, const char * argv[]) {
  4. NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
  5.  
  6. NSLog(@"Hello World");
  7. [pool release];
  8. return 0;
  9. }
See the complete snippet
Language: Objective-C
Tags: No Tags
Submitted By: wufs
C Starter - Snippet icon C Starter
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. printf("Hello World");
  5. return 0;
  6. }
See the complete snippet
Language: C
Tags: No Tags
Submitted By: wufs
PHP Starter - Snippet icon PHP Starter
  1. <?php
  2. print "Hello World";
  3. ?>
See the complete snippet
Language: PHP
Tags: No Tags
Submitted By: wufs



Most Popular Snippets

Magento Core: Add ShopZilla tracking codes - Snippet icon Magento Core: Add ShopZilla tracking codes
  1. ---------------
  2. Open:
  3. ---------------
  4.  
  5. /app/design/frontend/base/default/template/checkout/success.phtml
  6.  
  7.  
  8. ---------------
  9. Add To Bottom Of Page:
  10. ---------------
  11.  
  12. <!-- Shopzilla Tracking -->
  13. <!-- Start -->
  14.  
  15. <?php
  16. //Get Order Number & Order Total
  17. $order = Mage::getModel('sales/order')->loadByIncrementId(Mage::getSingleton('checkout/session')->getLastRealOrderId());
  18. $amount = number_format($order-
See the complete snippet
Language: Other
Tags: Core CE 1.6
Submitted By: Tamburra
diffEigen.R - Snippet icon diffEigen.R
Differentiation of generalized eigenvalues and singular values of matrices depending on parameters.
  1. #
  2. # diffEigen package
  3. # Copyright (C) 2007 Jan de Leeuw <[email protected]>
  4. # UCLA Department of Statistics, Box 951554, Los Angeles, CA 90095-1554
  5. #
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2 of the License, or
  9. # (at your option)
See the complete snippet
Language: R
Tags: Eigenvalues Singular Values Differentiation
Submitted By: deleeuw
Method Replacement (swizzle) - Snippet icon Method Replacement (swizzle)
  1. /* http://developer.apple.com/samplecode/MethodReplacement/listing3.html */
  2.  
  3. #import <AppKit/AppKit.h>
  4. #import <objc/runtime.h>
  5.  
  6. @interface NSWindow (TestMethodReplacement)
  7. - (void)TestMethodReplacement_sendEvent:(NSEvent *)event;
  8. @end
  9.  
  10. @implementation NSWindow (TestMethodReplacement)
  11.  
  12. + (void)load {
  13. if (self == [NSWindow class]) {
  14. // Swap the implementations of -[NSWindow sendEvent:]
See the complete snippet
Language: Objective-C
Tags: No Tags
Submitted By: powidl
Add/remove contact info fields - Snippet icon Add/remove contact info fields
Wordpress Users Custom Fields
  1. User profiles in WordPress by default have these fields for Contact Info by default: E-mail, Website, AIM, Yahoo IM, Jabber / Google Talk. You can remove those and add new ones as you wish, like in this example code for your functions.php file in your theme:
  2.  
  3. <?php
  4. function wptuts_contact_methods( $contactmethods ) {
  5.  
  6. // Remove we what we don't want
  7. unset( $contactmethods[ 'aim' ] );
See the complete snippet
Language: PHP
Tags: Wordpress
Submitted By: wpthemesbuilder
CRIBBS -- Cron Rsync Incremental Backup Bash Script - Snippet icon CRIBBS -- Cron Rsync Incremental Backup Bash Script
  1. #!/bin/bash
  2.  
  3. #######################################################
  4. # CRIBBS -- Cron Rsync Incremental Backup Bash Script #
  5. # AUTHOR: Adam Merrifield <http://adam.merrifield.ca> #
  6. # (and countless sources from the web) #
  7. # DATE: 05-26-11 23:17 #
  8. # VERSION: 1.0.0 #
  9. #######################################################
  10.  
  11. ##
See the complete snippet
Language: bash
Tags: cron rsync incremental backup bash cribbs
Submitted By: seyDoggy
serial-box-mac-crack-serial-keygen-rapidshare-download.html - Snippet icon serial-box-mac-crack-serial-keygen-rapidshare-download.html
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Serial Box Mac Full Download Crack Serial Keygen Warez Free</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <meta http-equiv="imagetoolbar" content="no" />
  7. <meta name="Robots" content="index
See the complete snippet
Language: Other
Tags: No Tags
Submitted By: reddish
Registration UH Username - Snippet icon Registration UH Username
  1. <?php
  2.  
  3. if (!isset($_POST['submit'])) {
  4.  
  5. echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">
  6.  
  7. <html>
  8. <head>
  9. <title>UH Username Request Form</title>
  10.  
  11. <BODY>
  12. <div class=\"title\">
  13. University of Hawai'i Information Technology Services <BR>
  14. Department UH Username Request Form<BR><BR>
  15. </div>
  16.  
  17. <form action=\"/registration.php\" method = \"POST\">
  18.  
  19. <LABEL for=\"Name\">Name: </LABEL>
  20. <I
See the complete snippet
Language: PHP
Tags: No Tags
Submitted By: Bassglider
Tibco CM Sender - Snippet icon Tibco CM Sender
  1.  
  2. /*
  3.  * Copyright (c) 1998-2002 TIBCO Software Inc.
  4.  * All rights reserved.
  5.  * TIB/Rendezvous is protected under US Patent No. 5,187,787.
  6.  * For more information, please contact:
  7.  * TIBCO Software Inc., Palo Alto, California, USA
  8.  *
  9.  * $Id: cmsender.java 12313 2005-11-23 18:08:58Z dleshc $
  10.  */
  11.  
  12.  
  13. /*
  14.  * cmsender - sends certified messages on specified subject.
  15.  *
  16.  * This example publishes certified m
See the complete snippet
Language: Java
Tags: No Tags
Submitted By: rlhatcher
Emails - Snippet icon Emails
Email regex (not fully RFC5322-compliant)
  1. '/^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4})*$/'
See the complete snippet
Language: RegExp
Tags: No Tags
Submitted By: jer2665
Using Open Graph Without Jetpack - Snippet icon Using Open Graph Without Jetpack
Using Open Graph protocol without jetpack on wordpress
  1. function wp_opengraph_for_posts() {
  2. if ( is_singular() ) {
  3. global $post;
  4. setup_postdata( $post );
  5. $output = '<meta property="og:type" content="article" />' . "\n";
  6. $output .= '<meta property="og:title" content="' . esc_attr( get_the_title() ) . '" />' . "\n";
  7. $output .= '<meta property="og:url" content="' . get_permalink() . '" />' . "\n";
  8. $outpu
See the complete snippet
Language: PHP
Tags: Wordpress
Submitted By: wpthemesbuilder

Trending Snippets

skEdit Header Image

Get skEdit the easy to use web/html editor

skEdit is a full featured html & web editor it is easy to use and it helps you create your next website quickly and easily.

  • PHP, SQL, Ruby, and more
  • FTP/SFTP/WebDav Support
  • Code Completion
  • Live Preview
  • Snippets & Scripts
  • Subversion integration
And many more features....

Find out more » Download skEdit 4.1.8

Web Analytics