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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>Untitled</title> | |
| </head> | |
| <body> | |
| </body> | |
| </html> |
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 java.time.format.DateTimeFormatter; | |
| import java.time.Instant; | |
| import java.time.ZonedDateTime; | |
| import java.time.ZoneId; | |
| import java.time.ZoneOffset; | |
| Instant.now(); | |
| // java.time.Instant = 2015-08-13T09:28:27.141Z | |
| DateTimeFormatter.ISO_INSTANT.format(Instant.now()); |
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 java.time.{Instant, ZonedDateTime} | |
| import play.api.libs.json._ | |
| import scala.util.control.NonFatal | |
| /** | |
| * PlayJson Basics | |
| */ | |
| // See type hierarchy (^H) of: |
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
| Safari: | |
| Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/600.6.3 (KHTML, like Gecko) Version/7.1.6 Safari/537.85.15 | |
| WebView: | |
| Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.78.2 (KHTML, like Gecko) |
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
| Process: SoundCleod [31653] | |
| Path: /Applications/SoundCleod.app/Contents/MacOS/SoundCleod | |
| Identifier: sc.SoundCleod | |
| Version: 0.17 (0.17) | |
| Code Type: X86-64 (Native) | |
| Parent Process: ??? [1] | |
| Responsible: SoundCleod [31653] | |
| User ID: 502 | |
| Date/Time: 2015-01-12 11:35:35.447 -0500 |
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
| #!/bin/bash | |
| /usr/libexec/java_home -V 2>&1 1>/dev/null | | |
| tail -n +2 | | |
| awk -F $'\t' '{ print $3 }' | | |
| xargs -n 1 jenv add |
RAML
- http://raml.org/
- https://github.com/raml-org
- schema definition in yaml
- uses json schema for request/response bodies
- schema parsers for Java and JS
- v 0.8, 1.0 is coming soon
- many third party tools (api designer, client/server generators, etc)
Swagger
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
| // Adopted from here: https://gist.github.com/bripkens/8597903 | |
| // Makes ES7 Promises polyfill work on Nashorn https://github.com/jakearchibald/es6-promise | |
| // (Haven't verified how correct it is, use with care) | |
| (function(context) { | |
| 'use strict'; | |
| var Timer = Java.type('java.util.Timer'); | |
| var Phaser = Java.type('java.util.concurrent.Phaser'); | |
| var timer = new Timer('jsEventLoop', false); |