This file contains 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
(__ \ "fields" \ "customfield_10233" \ "value").readNullable[String] | |
(__ \ "fields" \ "customfield_10233").readNullable( | |
(__ \ "value").readNullable[String]) ~ | |
//GOTCHA!! | |
(__ \ "fields" \ "customfield_10233").readNullable( | |
(__ \ "value").read[String]) |
This file contains 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
GET /bookings controllers.Bookings.list(filter:binders.BookingQS ?= binders.BookingQS.empty, p:Int ?= 0, s:Int ?= -4) |
This file contains 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 binders | |
import play.api.mvc._ | |
import java.net.URLEncoder | |
import play.api.data.Mapping | |
// --- Definition of a query string binder for type A using a Mapping[A] | |
object Binders { | |
implicit def mappingBinder[A](implicit mapping: Mapping[A]) = new QueryStringBindable[A] { |
This file contains 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
#%RAML 0.8 | |
title: Foo REST API | |
version: v1 | |
baseUri: http://api.mydomain.com/{version} | |
/places: | |
get: | |
queryParameters: | |
s: |
This file contains 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
{ | |
"$schema": "http://json-schema.org/draft-03/schema", | |
"type": "object", | |
"properties": { | |
"total_count": { | |
"type": "integer" | |
}, | |
"items": [ | |
{ | |
"properties": { |
This file contains 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
Jan 9 11:23:06 jenkins jenkins[20669]: java.lang.InstantiationException: /var/lib/jenkins/plugins/copy-project-link/WEB-INF/lib/classes.jar might need to be rebuilt: java.lang.ClassNotFoundException: hudson.plugins.copyProjectLink.CopyFolderActionFactory | |
Jan 9 11:23:06 jenkins jenkins[20669]: #011at net.java.sezpoz.IndexItem.element(IndexItem.java:144) | |
Jan 9 11:23:06 jenkins jenkins[20669]: #011at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:666) | |
Jan 9 11:23:06 jenkins jenkins[20669]: #011at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:310) | |
Jan 9 11:23:06 jenkins jenkins[20669]: #011at hudson.ExtensionList.load(ExtensionList.java:295) | |
Jan 9 11:23:06 jenkins jenkins[20669]: #011at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248) | |
Jan 9 11:23:06 jenkins jenkins[20669]: #011at hudson.ExtensionList.iterator(ExtensionList.java:138) | |
Jan 9 11:23:06 jenkins jenkins[20669]: #011at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:309) | |
Jan 9 11 |
This file contains 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
10/12/2013 11:52:37 Executing Maven: -B -f /var/lib/jenkins/jobs/RELEASE-it-test/workspace/pom.xml -DdevelopmentVersion=1.5-SNAPSHOT -DreleaseVersion=1.4 -Dresume=false release:prepare release:perform | |
10/12/2013 11:52:37 [WARNING] | |
10/12/2013 11:52:37 ************ WARNING ************ | |
10/12/2013 11:52:37 | |
10/12/2013 11:52:37 This Maven runtime contains a LifecycleExecutor component with an incomplete configuration. | |
10/12/2013 11:52:37 | |
10/12/2013 11:52:37 LifecycleExecutor class: org.apache.maven.lifecycle.LifecycleExecutorInterceptor | |
10/12/2013 11:52:37 Missing component requirement: org.apache.maven.project.MavenProjectBuilder | |
10/12/2013 11:52:37 |
This file contains 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
def textValues: Observable[String] = { | |
Observable(observer => { | |
Subscription { | |
field.subscribe({ | |
case ValueChanged(v) => v.text | |
}) | |
} | |
}) | |
} |
This file contains 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
implicit val reads: Reads[PostedMessage] = ( | |
(__ \ "_id").read[String] ~ | |
(__ \ "@message").read[String] ~ | |
(__ \ "_source" \ "@fields" \ "CPAID").read[String] ~ | |
(__ \ "_source" \ "@fields" \ "frompartyid").read[String] ~ | |
(__ \ "_source" \ "@fields" \ "topartyid").read[String] ~ | |
(__ \ "_source" \ "@fields" \ "CONVERSATIONID").read[String] ~ | |
(__ \ "_source" \ "@fields" \ "msgId").read[String] ~ | |
(__ \ "_source" \ "@fields" \ "action").read[String] ~ | |
(__ \ "_source" \ "@fields" \ "service").read[String] |
This file contains 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
int cptDays = 0; | |
while (startPeriodCal.getTimeInMillis() < endPeriodCal.getTimeInMillis()) { | |
startPeriodCal.add(Calendar.DATE, 1); | |
cptDays = cptDays + 1; | |
} |