コード・スニペット
いくつかの Haxe のコード・スニペットです。
- _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
- method_missing (like in ruby), catch all for methods
- Minimax Algorithm for Games
- Newton's Method
- Newton's Square Root 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
新しいコードスニペットを作るには、単に "/doc/snip/xxxx" を開き、"Create Page" をクリックして、新しいスニペットを作成してください。最初に、 Register から新しい Wiki アカウントを先に作る必要があるかもしれません。文法に色をつけるには、コードを <code haxe
> と </code>
で囲ってください。コード・スニペットは非常に小さく簡潔な例にしてください。コード中に何をしているか説明を書いてください。
version #13774, modified 2012-04-16 18:04:14 by yukoba