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 Main where | |
| main = Debug.Trace.trace ("module Main where\n\n" ++ code ++ "\n where code = \"\"\"" ++ code ++ "\"\"\"") | |
| where code = """main = Debug.Trace.trace ("module Main where\n\n" ++ code ++ "\n where code = \"\"\"" ++ code ++ "\"\"\"")""" |
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
| r53 = AWS::Route53.new( | |
| :access_key_id => 'aws-key-id', | |
| :secret_access_key => 'aws-secret-key') | |
| response = r53.client.list_resource_record_sets( | |
| :hosted_zone_id => "zone-id", | |
| :start_record_name => 'xxx.example.com', | |
| :start_record_type => 'CNAME' | |
| ) | |
| puts response[:resource_record_sets].map{|r| r[:name]} |
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
| trait Ordered[A] { | |
| def compare(that: A): Int | |
| def < (that: A): Boolean = (this compare that) < 0 | |
| def > (that: A): Boolean = (this compare that) > 0 | |
| def <= (that: A): Boolean = (this compare that) <= 0 | |
| def >= (that: A): Boolean = (this compare that) >= 0 | |
| } | |
| } | |
| class Person(val name: String) extends Ordered[Person] { |