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
| { | |
| "logstash_log" : { | |
| "title" : "Logstash Log Format", | |
| "description" : "Logstash Log Format", | |
| "json": true, | |
| "timestamp-field": "@timestamp", | |
| "level-field" : "level", | |
| "body-field" : "message", | |
| "module-field": "logger_name", | |
| "level" : { |
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
| import scala.annotation.tailrec | |
| @tailrec | |
| def foldLeft[A, B](l: List[A], z: B)(f: (B, A) => B): B = l match { | |
| case Nil => z | |
| case a :: as => foldLeft(as, f(z, a))(f) | |
| } | |
| // (((0 + 1) + 2) + 3) |
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
| class Route | |
| delegate :count, :empty?, to: '@segments' | |
| def initialize | |
| @segments = [] | |
| end | |
| class IllegalSegmentError < Exception; end | |
| def <<(flight) |
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
| /* | |
| * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. | |
| * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. | |
| * | |
| * | |
| * | |
| * | |
| * | |
| * | |
| * |