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
Iterm2 / Preferences / Profiles / Advanced / Semantic History | |
"Run command ..." with | |
~/bin/iterm_open_with.sh \5 \1 \2 |
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
Verifying that +sirthias is my blockchain ID. https://onename.com/sirthias |
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
Benchmark Mode Cnt Score Error Units | |
---------------------------------------------------------------------------------- | |
json4SJacksonFromByteArrayInputStream thrpt 20 342.476 ± 2.362 ops/s | |
json4SJacksonFromString thrpt 20 306.034 ± 1.426 ops/s | |
sprayJsonParserToVectorBasedBasicAstFromBytes thrpt 20 266.198 ± 2.103 ops/s | |
sprayJsonParserToArrayBasedBasicAstFromBytes thrpt 20 265.217 ± 1.649 ops/s | |
argonautFromString thrpt 20 222.747 ± 2.226 ops/s | |
sprayJsonFromBytes thrpt 20 222.021 ± 1.681 ops/s | |
jawnFromString thrpt 20 212.218 ± 2.292 ops/s | |
sprayJsonFromString thrpt 20 206.116 ± 1.849 ops/s |
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 org.json4s.basic.ast | |
import scala.annotation.tailrec | |
import scala.collection.immutable.VectorBuilder | |
/** | |
* Minimal AST for " The JavaScript Object Notation (JSON) Data Interchange Format" | |
* RFC 7159 (https://tools.ietf.org/html/rfc7159) | |
*/ | |
sealed abstract class JValue extends Serializable with Product |
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
/* | |
Stream Setup | |
============ | |
requestIn +----------+ | |
+-----------------------------------------------+--->| Termi- | requestRendering | |
| | nation +---------------------> | | |
+-------------------------------------->| Merge | | | |
| Termination Backchannel | +----------+ | TCP- | |
| | | 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
object Tcp { | |
trait ConnectionDescriptor { | |
def remoteAddress: InetSocketAddress | |
def localAddress: InetSocketAddress | |
} | |
sealed trait ConnectionFlow extends Flow[ByteString, ByteString] { | |
def remoteAddress(mMap: MaterializedMap): InetSocketAddress | |
def localAddress(mMap: MaterializedMap): InetSocketAddress |
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
- Wave[T] | |
- not reusable stream of Ts | |
- Drain[T] | |
- not reusable stream sink for Ts | |
- Source[T] | |
- has `def newWave(): Wave[T]`, i.e. is creator for Wave[T] instances | |
- has implicit conversion to Wave[T], i.e. can be used whereever a Wave[T] is expected | |
- Sink[T] | |
- has `def newDrain(): Drain[T]`, i.e. is creator for Drain[T] instances | |
- has implicit conversion to Drain[T], i.e. can be used whereever a Drain[T] is expected |
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
Benchmark Score Score error Units | |
--------------------------------------------------------- | |
json4S Jackson 310.069 5.641 ops/s | |
spray-json 1.3.0 224.355 1.546 ops/s | |
argonaut 172.488 1.558 ops/s | |
json4S Native 140.801 2.213 ops/s | |
parboiled2 JSON example 94.294 0.803 ops/s | |
spray-json 1.2.6 14.223 0.533 ops/s | |
Scala Parser Combinators 1.038 0.013 ops/s |
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
diff --git a/spray-routing/src/main/resources/reference.conf b/spray-routing/src/main/resources/reference.conf | |
index 67c6177..08aaf84 100644 | |
--- a/spray-routing/src/main/resources/reference.conf | |
+++ b/spray-routing/src/main/resources/reference.conf | |
@@ -21,6 +21,9 @@ spray.routing { | |
# the size of an individual chunk when streaming file content | |
file-chunking-chunk-size = 128k | |
+ # Enables/disables ETag and `If-Modified-Since` support for FileAndResourceDirectives | |
+ file-get-conditional = on |