코드 조각
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/xxxxx
(xxxxx : 원하는 이름)으로 접속한 다음 Create Page
버튼을 누르면 됩니다. 페이지를 생성하기 위해서는 먼저 등록을 해야합니다. 만약 페이지 작성시에 코드를 문법에 따라 강조하고 싶다면, 당신의 코드를 <code haxe
></code>
사이에 넣어주세요. 코드 조각은 작고 간결한 예제가 되어야 합니다. 또한 당신은 코드가 무엇을 하는지에 대해서 코드 아래에 간단한 설명을 할 수 있습니다.
version #14034, modified 2012-05-19 06:22:29 by lucidfext