Code Snippets
Here's a few examples of haXe code snippets :
- Array: Sort an array of strings
- Color Converter
- commaFormat
- conditional if shorthand, check if argument is null
- Countdown max...min IntIter
- Database: Insert a blob
- deepTrace
- Email Validation (cross platform)
- fast_fourier_transform
- Using the built-in Flash trace method
- generic factory method
- groupByHash
- Hello World
- commaFormat#2, hiscore
- infinitegrid
- Complex Initialization of static properties
- Equation of a straight line
- memoize
- numericbase
- Point Manipulation
- Quicksort
- Safe remove
- 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