Showing latest added snippets.

Form Submission Redirect - Snippet icon Form Submission Redirect
  1. <META HTTP-EQUIV="refresh" content="0;URL=index.php">
  2.  
See the complete snippet
Language: PHP
Tags:
Submitted By: mjlintz
Java Starter - Snippet icon Java Starter
  1. class HelloWorld {
  2. public static void main(String args[]) {
  3. System.out.print("Hello World");
  4. }
  5. }
See the complete snippet
Language: Java
Tags:
Submitted By: patrick.elder
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:
Submitted By: patrick.elder
PHP Starter - Snippet icon PHP Starter
  1. <?php
  2. print "Hello World";
  3. ?>
See the complete snippet
Language: PHP
Tags:
Submitted By: patrick.elder
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:
Submitted By: patrick.elder
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:
Submitted By: patrick.elder
HTML 4.01 Strict - Snippet icon HTML 4.01 Strict
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
  2. "http://www.w3.org/TR/html4/strict.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:
Submitted By: patrick.elder
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:
Submitted By: patrick.elder
XHTML 1.0 Strict - Snippet icon XHTML 1.0 Strict
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3.  
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  6. <title>untitled</title>
  7. </head>
  8.  
  9. </body>
  10. </html>
See the complete snippet
Language: HTML
Tags:
Submitted By: patrick.elder
Adding Bundles - Snippet icon Adding Bundles
  1. Code Collector Pro allows you to add bundles to expand the list of languages available allowing them to have their syntax coloured. Code Collector Pro supports TextMate bundles, which are available from the online bundle respository (http://macromates.com/svn/Bundles/trunk/). Once you have downloaded a bundle you can add it by going into Preferences and clicking on the + button in the bundles sect
See the complete snippet
Language: Other
Tags:
Submitted By: patrick.elder
XHTML 1.0 Transitional - Snippet icon XHTML 1.0 Transitional
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3.  
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  6. <title>untitled</title>
  7. </head>
  8.  
  9. </body>
  10. </html>
See the complete snippet
Language: HTML
Tags:
Submitted By: patrick.elder
Print Word Docs to default printer - Snippet icon Print Word Docs to default printer
  1. (* Used for converting documents to pdfs (pdf printer) en masse *)
  2.  
  3. set selected_files to choose file with multiple selections allowed
  4. print_files(selected_files)
  5. return
  6.  
  7. on open of selected_files
  8. print_files(selected_files)
  9. end open
  10.  
  11. on print_files(the_files)
  12. log "choosing printer"
  13. choose_printer()
  14. repeat with doc in the_files
  15. set the_path to doc as text (*to file_path(doc)*)
  16. log "got fil
See the complete snippet
Language: AppleScript
Tags:
Submitted By: bjeanes
Convert final cut export xml file to point to new clips - Snippet icon Convert final cut export xml file to point to new clips
  1. #!/usr/bin/env ruby
  2. # == Synopsis
  3. #
  4. # redconv: Takes an XML sequence file and outputs a version referencing hi-res clips
  5. #
  6. # == Usage
  7. #
  8. # redconv [-h] INPUT_FILE [OUTPUT_FILE]
  9. #
  10. # INPUT_FILE: The path to the xml sequence
  11. # OUTPUT_FILE: The file to output to (else STDOUT)
  12. #
  13. # Options:
  14. # -h Show this message
  15. #
  16. # == Issues
  17. #
  18. # - Input and output files might need to be in the same direct
See the complete snippet
Language: Ruby
Tags:
Submitted By: bjeanes
render frame clearer - Snippet icon render frame clearer
  1. #!/usr/bin/env ruby
  2.  
  3. require 'FileUtils'
  4.  
  5. Dir.chdir(ARGV.shift || Dir.pwd)
  6.  
  7. folder_name = Dir.pwd.split("/").last
  8.  
  9. keep = (1..60).to_a
  10. keep << [63, 68, 74, 79, 85, 90, 96, 102, 107, 113, 118, 124, 130, 135, 141, 146, 152]
  11. keep << [158, 163, 169, 174, 180, 186, 191, 197, 202, 208, 213, 219, 225, 230, 236, 241]
  12. keep << [247, 253, 258, 264, 269, 275, 281, 286, 292, 297, 303, 309, 314, 320, 325, 331]
  13.  
See the complete snippet
Language: Ruby
Tags:
Submitted By: bjeanes
create network aliases - Snippet icon create network aliases
  1. (* This will be used to parse a DFS XML page and create a directory of symlinks for mac users to access DFS drives *)
  2.  
  3. set the_path to "/Volumes/multimedia$"
  4. set the_file to POSIX file the_path
  5.  
  6. tell application "Finder" to make new alias to file the_file
See the complete snippet
Language: AppleScript
Tags:
Submitted By: bjeanes
Java Starter - Snippet icon Java Starter
  1. class HelloWorld {
  2. public static void main(String args[]) {
  3. System.out.print("Hello World");
  4. }
  5. }
See the complete snippet
Language: Java
Tags:
Submitted By: philip
Adding Bundles - Snippet icon Adding Bundles
  1. Code Collector Pro allows you to add bundles to expand the list of languages available allowing them to have their syntax coloured. Code Collector Pro supports TextMate bundles, which are available from the online bundle respository (http://macromates.com/svn/Bundles/trunk/). Once you have downloaded a bundle you can add it by going into Preferences and clicking on the + button in the bundles sect
See the complete snippet
Language: Other
Tags:
Submitted By: philip
XHTML 1.0 Strict - Snippet icon XHTML 1.0 Strict
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3.  
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  6. <title>untitled</title>
  7. </head>
  8.  
  9. </body>
  10. </html>
See the complete snippet
Language: HTML
Tags:
Submitted By: philip
Code Collector Pro Header Image

Get Code Collector Pro

Code Collector Pro is a storage app for code snippets. From HTML to Cocoa, C++ to Ruby, Code Collector Pro looks after all your code snippets, letting you quickly reference them whenever you want.

Find out more » Download Code Collector Pro 1.6.4

Web Analytics