Code Snippets
Hier zijn een paar voorbeelden van zogenaamde Haxe 'code snippets' :
- _flash_benchmarks
- [flash] Only Once EventListener
- 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
Om een nieuwe 'code snippet' te maken, kan je eenvoudig naar /doc/snip/xxxxx navigeren en op Create Page klikken. Het is misschien nodig om vooraf een Wiki account aan te maken. Om de syntax met kleur te verduidelijken dien je de code tussen <code haxe> en </code> op te nemen. 'Code snippets' dienen erg kort, bondig en in het Engels! te zijn. Je kunt ruimte onder de code gebruiken om de functie uit te leggen.
version #6841, modified 2009-08-23 15:18:44 by mloots