Login »

You can register to create an account and edit the pages of the Wiki.

User : Pass :
HaXe logo

One language, everywhere.

  • Home
  • Download
  • Documentation
  • Community
  • Forum
  • IRC
  • API

Code Snippets

Documentation > Code Snippets

Here's a few examples of Haxe code snippets :

  • Using Lambda for array map() and filter()
  • Array: Sort an array of strings
  • Color Converter
  • commaFormat
  • conditional if shorthand, check if argument is null
  • Countdown max...min IntIter
  • Embedding data using metadata
  • Database: Insert a blob
  • deepTrace
  • Email Validation (cross platform)
  • fast_fourier_transform
  • Using the built-in Flash trace method
  • generic factory method
  • Get Target
  • Getting Started With Sqlite
  • groupByHash
  • Hello World
  • commaFormat#2, hiscore
  • infinitegrid
  • Complex Initialization of static properties
  • Equation of a straight line
  • memoize
  • Newton's Method
  • numericbase
  • Point Manipulation
  • Quicksort
  • Safe remove
  • selective_trace
  • Size with a Hash
  • How big is my StringBuf?
  • Iterating over Floats with a specific step
  • StopWatch
  • stringWithFormat
  • SWFProfiler
  • URI Parser
  • [flash] Elegant Way to use Weak Listeners
  • Write text file with BOM
  • _flash_benchmarks
  • [flash] Only Once EventListener

In order to create a new code snippet, you can simply navigate to /doc/snip/xxxxx then click on Create Page to create a new snippet. You might need to Register a Wiki account first. In order to get syntax colorization, please enclose your code between <code haxe> and </code>. Code snippets should be very small and concise examples. You can also explain what it's doing below the code.

version #6768, modified 2009-08-18 21:10:18 by ncannasse
  • history
  • backlinks
  • en English
  • fr Français
  • ru Pусский
  • jp 日本語
  • nl Nederlands
  • de Deutsch
  • es Español
  • it Italian
  • pl Polski
  • pt Português
  • cn 中文
  • ro Română
  • kr Korean

Menu

  • Home
  • Download
  • Documentation
  • Community
  • Forum
  • IRC
  • API

Options

  • Wiki Map
  • Latest Changes

All rights reserved. Powered by Haxe