This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package sun.flower.kata | |
| /** | |
| * | |
| * User: sunflower | |
| * Date: 13-2-23 | |
| * Time: 下午10:41 | |
| * | |
| */ | |
| object MyLinkedList { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package sun.flower.kata | |
| import annotation.tailrec | |
| import java.util | |
| /** | |
| * | |
| * User: sunflower | |
| * Date: 13-2-23 | |
| * Time: 下午9:38 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package sun.flower.euler | |
| /** | |
| * | |
| * User: sunflower | |
| * Date: 13-3-19 | |
| * Time: 上午12:54 | |
| * | |
| * Problem 3: | |
| * The prime factors of 13195 are 5, 7, 13 and 29. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package sun.flower.euler | |
| /** | |
| * | |
| * User: sunflower | |
| * Date: 13-3-19 | |
| * Time: 上午2:18 | |
| * | |
| */ | |
| /* | |
| A palindromic number reads the same both ways. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <plugin> | |
| <groupId>org.apache.cxf</groupId> | |
| <artifactId>cxf-codegen-plugin</artifactId> | |
| <version>${cxf.version}</version> | |
| <executions> | |
| <execution> | |
| <id>generate-sources</id> | |
| <phase>generate-sources</phase> | |
| <configuration> | |
| <defaultOptions> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // scala 2.7 simple type constraint. This can only constrain a type parameter of this function. | |
| // Below, in ListW.sumint28, we can't use this approach because we want to constrain T, | |
| // a type param of the enclosing trait. | |
| def sumint27A[T <: Int](l: List[T]) : Int = l.reduceLeft((a: Int, b: Int) => a + b) | |
| trait IntLike[X] extends (X => Int) | |
| object IntLike { | |
| implicit val intIntLike: IntLike[Int] = new IntLike[Int] { def apply(x: Int) = identity(x) } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env perl | |
| # Remember `chmod a+x hslint, after putting on path. | |
| $ghc = '/usr/bin/ghc'; # where is ghc | |
| @ghc_options = ('-Wall'); # e.g. ('-fglasgow-exts') | |
| @ghc_packages = (); # e.g. ('QuickCheck') | |
| ### the following should not been edited ### | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| metaphor:include metaflower$ brew doctor | |
| Your system is raring to brew. | |
| metaphor:include metaflower$ brew --config | |
| HOMEBREW_VERSION: 0.9.4 | |
| ORIGIN: https://github.com/mxcl/homebrew | |
| HEAD: 56d86e070a60b9deac092a844993332945855027 | |
| HOMEBREW_PREFIX: /usr/local | |
| HOMEBREW_CELLAR: /usr/local/Cellar | |
| CPU: 8-core 64-bit ivybridge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package sun.flower.iteratee | |
| /** | |
| * | |
| * User: metaflower | |
| * Date: 13-4-7 | |
| * Time: 下午11:02 | |
| */ | |
| object IterateeToy { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module ToyIteratee where | |
| import Data.Maybe | |
| import Control.Monad | |
| -- Iteratee toy | |
| type LC = Maybe Char |