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
| val hotels = Hotels.findAll | |
| println(s"${hotels.length} hotels - constructing XML") | |
| val xml = <listings xsi:noNamespaceSchemaLocation="http://local.google.com/local_feed.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
| <language>en</language> | |
| {hotels.map(hotel => <listing> | |
| <id>{hotel.id.getOrElse("")}</id> | |
| <name>{hotel.name}</name> | |
| <address format="simple"> | |
| <component name="addr1">{hotel.addr1.getOrElse("")} {hotel.addr2.getOrElse("")}</component> | |
| <component name="city">{hotel.city.getOrElse("NO DATA")}</component> |
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
| 11:27:00 :: ~/git/play-autosource ‹master› » sbt | |
| [ERROR] Terminal initialization failed; falling back to unsupported | |
| java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected | |
| at jline.TerminalFactory.create(TerminalFactory.java:101) | |
| at jline.TerminalFactory.get(TerminalFactory.java:159) | |
| at sbt.ConsoleLogger$.ansiSupported(ConsoleLogger.scala:85) | |
| at sbt.ConsoleLogger$.<init>(ConsoleLogger.scala:79) | |
| at sbt.ConsoleLogger$.<clinit>(ConsoleLogger.scala) | |
| at sbt.GlobalLogging$.initial(GlobalLogging.scala:40) | |
| at sbt.StandardMain$.initialGlobalLogging(Main.scala:54) |
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/sh | |
| TAG_START=$1 | |
| TAG_END=$2 | |
| function escape_chars { | |
| sed -r -e 's/(["\\])/\\\1/g' -e 's/\t/ /g' | |
| } | |
| function format { | |
| sha=$(git log -n1 --pretty=format:%h $1 | escape_chars) | |
| message=$(git log -n1 --pretty=format:%s $1 | escape_chars) |
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
| val url = "http://nominatim.openstreetmap.org/search/" + addressEncoded + "?format=json&addressdetails=1" | |
| play.Logger.debug(s"url $url") | |
| val jsonContainingLatitudeAndLongitude = WS.url(url).get() | |
| val future = jsonContainingLatitudeAndLongitude map { | |
| response => (response.json \\ "lat", response.json \\ "lon") | |
| // response => (response.json ) | |
| } | |
| // Wait until the future completes (Specified the timeout above) |
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
| [info] Resolving play#play-json_2.10;2.2-SNAPSHOT ... | |
| [error] Server access Error: Connection timed out url=https://github.com/mandubian/mandubian-mvn/raw/master/snapshots/play/play-json_2.10/2.2-SNAPSHOT/maven-metadata.xml | |
| [error] Server access Error: Connection timed out url=https://github.com/mandubian/mandubian-mvn/raw/master/snapshots/play/play-json_2.10/2.2-SNAPSHOT/play-json_2.10-2.2-SNAPSHOT.pom | |
| [error] Server access Error: Connection timed out url=https://github.com/mandubian/mandubian-mvn/raw/master/releases/play/play-json_2.10/2.2-SNAPSHOT/maven-metadata.xml | |
| [error] Server access Error: Connection timed out url=https://github.com/mandubian/mandubian-mvn/raw/master/releases/play/play-json_2.10/2.2-SNAPSHOT/play-json_2.10-2.2-SNAPSHOT.pom | |
| [warn] module not found: play#play-json_2.10;2.2-SNAPSHOT | |
| [warn] ==== local: tried | |
| [warn] /home/gbougeard/.ivy2/local/play/play-json_2.10/2.2-SNAPSHOT/ivys/ivy.xml | |
| [warn] ==== Mandubian repository snapshots: tried | |
| [warn] https://github.com/mandubian/mandubian-m |
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
| LoadModule proxy_module modules/mod_proxy.so | |
| <VirtualHost *:80> | |
| ServerName ks27984.kimsufi.com:80 | |
| ServerAlias ks27984.kimsufi.com | |
| ProxyPreserveHost On | |
| #ProxyPass /excluded ! | |
| ProxyPass /fam http://localhost:9000/ | |
| ProxyPassReverse /fam http://localhost:9000/ | |
| </VirtualHost> |
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
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-compiler-plugin</artifactId> | |
| <version>3.1</version> | |
| <configuration> | |
| <compilerId>javac-with-errorprone</compilerId> | |
| <forceJavacCompilerUse>true</forceJavacCompilerUse> | |
| </configuration> | |
| <dependencies> | |
| <dependency> |
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
| 10:27:42 :: java/release/components ‹prone› » mvn -e -U clean compile 1 ↵ | |
| + Error stacktraces are turned on. | |
| [INFO] Scanning for projects... | |
| [INFO] snapshot com.reservit:reservit-web-parent:95.0.1-SNAPSHOT: checking for updates from central | |
| [INFO] ------------------------------------------------------------------------ | |
| [INFO] Building Components | |
| [INFO] task-segment: [clean, compile] | |
| [INFO] ------------------------------------------------------------------------ | |
| [INFO] [clean:clean {execution: default-clean}] | |
| [INFO] Deleting file set: /home/itsrc/java/release/components/target (included: [**], excluded: []) |
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.gbougeard.dsl | |
| import org.specs2.mutable._ | |
| import org.specs2.matcher.ParserMatchers | |
| /** | |
| * Created with IntelliJ IDEA. | |
| * User: gbougeard | |
| * Date: 15/07/13 |
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.gbougeard | |
| package dsl | |
| object Gas extends App { | |
| println("Hello, gas") | |
| val str = """ | |
| (query status "open" and branch "myBranch" , | |
| query status "closed" and branch "myOtherBranch" ) get ("LABELS","ALL_FILES") | |
| """" |