Showing latest added snippets.

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: WFreeland
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: WFreeland
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: WFreeland
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: WFreeland
PHP Starter - Snippet icon PHP Starter
  1. <?php
  2. print "Hello World";
  3. ?>
See the complete snippet
Language: PHP
Tags:
Submitted By: WFreeland
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: WFreeland
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: WFreeland
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: WFreeland
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: WFreeland
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: WFreeland
Widget Candy. .NewButton() - Snippet icon Widget Candy. .NewButton()
  1.  
  2.  
  3. WIDGET CANDY FOR CORONA & GIDEROS iPHONE ANDROID SDK Creates a button, showing an icon and text of your choice. Use the textAlign property (see Widget Properties) to display the icon to the left or right of the text, also to align the text caption.
  4.  
  5. A button's icon size is defined in the theme's lua file. See 'ButtonIconSize' there. Text buttons can be auto-sized (if there width property is set
See the complete snippet
Language: Other
Tags:
Submitted By: sierramanagement
Widget Candy. .NewWindow() - Snippet icon Widget Candy. .NewWindow()
  1.  
  2. WIDGET CANDY FOR CORONA & GIDEROS iPHONE ANDROID SDK Creates a window widget. Window widgets can hold other widgets and even arrange (layout) them automatically for you. Window widgets can be dragged (horizontally, vertically, or both) within a specified drag area, which is the screen size, for example. Window widgets also provide a close button to let them disappear again.
  3.  
  4. To add any widget to
See the complete snippet
Language: Other
Tags:
Submitted By: sierramanagement
Widget Candy GENERAL WIDGET METHODS - Snippet icon Widget Candy GENERAL WIDGET METHODS
  1.  
  2. MyWidget:show ( state, fadeDuration )
  3.  
  4. state (Boolean) Shows (true) or hides (false) the widget.
  5.  
  6. fadeDuration (Number) If specified, the widget will smoothly fade in or out, using the specified duration for the fade effect.
  7. —————————————
  8.  
  9. MyWidget:enable ( state )
  10.  
  11. state (Boolean) Enables (true) or disables (false) the widget. If disabled, the widget will appear greyed-
See the complete snippet
Language: Other
Tags:
Submitted By: sierramanagement
Widget Candy. GENERAL LAYOUT PROPERTIES - Snippet icon Widget Candy. GENERAL LAYOUT PROPERTIES
  1. Use these widget properties to control the automatic layout of the widget:
  2.  
  3. includeInLayout (Boolean) True or false. If set to true (default), this widget will be taken into account for automatic layouting. This means, the next widget that is placed within the same window will be positioned next to this widget. If set to false, this widget will be ignored by the automatic layout system.
  4.  
  5. newLayout
See the complete snippet
Language: Other
Tags:
Submitted By: sierramanagement
Widget Candy. .Show() - Snippet icon Widget Candy. .Show()
  1.  
  2.  
  3.  
  4. Shows or hides a widget, with or without a fade animation.
  5.  
  6. -- LOAD THE LIBRARY AND USE A GLOBAL VAR TO STORE A REFERENCE:
  7. _G.GUI = require("widget_candy")
  8.  
  9. -- CREATE A BUTTON
  10. _G.GUI.NewButton(
  11. {
  12. x = 50,
  13. y = 50,
  14. theme = "MyTheme",
  15. name = "Button1",
  16. caption = "HELLO!",
  17. } )
  18.  
  19. -- FADE-OUT AND HIDE THE BUTTON
  20. _G.GUI.Show("Button1", false, true )
  21.  
  22. Show (widgetName, isVisible,
See the complete snippet
Language: Other
Tags:
Submitted By: sierramanagement
Widget Candy. .Get() - Snippet icon Widget Candy. .Get()
  1.  
  2.  
  3. Returns the current value of the specified widget property.
  4.  
  5. -- LOAD THE LIBRARY AND USE A GLOBAL VAR TO STORE A REFERENCE:
  6. _G.GUI = require("widget_candy")
  7.  
  8. -- CREATE A BUTTON
  9. _G.GUI.NewButton(
  10. {
  11. x = 50,
  12. y = 50,
  13. theme = "MyTheme",
  14. name = "Button1",
  15. caption = "HELLO!",
  16. } )
  17.  
  18. -- GET THE CAPTION OF THIS BUTTON
  19. print( _G.GUI.Get("Button1", "caption") )
  20.  
  21. GetHandle (widgetName,
See the complete snippet
Language: Other
Tags:
Submitted By: sierramanagement
Widget Candy. .Set() - Snippet icon Widget Candy. .Set()
Widget Candy
  1.  
  2.  
  3. Changes a widget's properties (either a single property or multiple properties at once). It's basically the same as using a widget's :set() method -whatever you prefer.
  4.  
  5. -- LOAD THE LIBRARY AND USE A GLOBAL VAR TO STORE A REFERENCE:
  6. _G.GUI = require("widget_candy")
  7.  
  8. -- CREATE A BUTTON
  9. _G.GUI.NewButton(
  10. {
  11. x = 50,
  12. y = 50,
  13. theme = "MyTheme",
  14. name = "Button1",
  15. caption = "HI!"
See the complete snippet
Language: Other
Tags:
Submitted By: sierramanagement
Widget Candy. .GetHandle() - Snippet icon Widget Candy. .GetHandle()
Widget Candy
  1.  
  2.  
  3. Each command that creates a widget returns a reference (handle) to the created widget. You can either store this handle within a variable at creation time or use the .GetHandle() command at any later time to get the handle of a certain widget.
  4.  
  5. The main purpose of the GetHandle() command is to eliminate the need to store any permanent references to your widgets. Remember, objects cannot be delet
See the complete snippet
Language: Other
Tags:
Submitted By: sierramanagement
Widget Candy. .RemoveAllWidgets() - Snippet icon Widget Candy. .RemoveAllWidgets()
Widget Candy
  1.  
  2.  
  3. Removes (deletes) all existing widgets. If the "unloadThemes" parameter is set to true, all loaded themes are removed as well.
  4.  
  5. RemoveAllWidgets (unloadThemes)
  6.  
  7. unloadThemes (Boolean) If true, all loaded themes are removed as well.
See the complete snippet
Language: Other
Tags:
Submitted By: sierramanagement
Widget Candy. .UnloadTheme() - Snippet icon Widget Candy. .UnloadTheme()
Widget Candy
  1.  
  2.  
  3. Unloads a widget theme from memory and releases all related graphics and sounds from memory.
  4.  
  5. UnloadTheme (themeName)
  6.  
  7. themeName (String) The name of the theme to unload.
See the complete snippet
Language: Other
Tags:
Submitted By: sierramanagement
Code Collector Pro Header Image

Get Better Link Tester

Better Link Tester is the best way to check every page on your site to make sure that there are no broken links (404s), and to make sure that you site is up and running.

Find out more » Download Better Link Tester

Web Analytics