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
| #!/usr/bin/env bash | |
| # Formatting constants | |
| BOLD=`tput bold` | |
| UNDERLINE_ON=`tput smul` | |
| UNDERLINE_OFF=`tput rmul` | |
| TEXT_BLACK=`tput setaf 0` | |
| TEXT_RED=`tput setaf 1` | |
| TEXT_GREEN=`tput setaf 2` | |
| TEXT_YELLOW=`tput setaf 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
| def json(foo:String, bar:String) = | |
| f"""{ | |
| | "commands" : [{ | |
| | "type" : "set_user_data", | |
| | "user_data" : { | |
| | "foo" : $foo%s, | |
| | "bar" : $bar%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
| import scala.util.DynamicVariable | |
| /** | |
| * A concise JSON DSL in Scala. | |
| * When you want to use, only | |
| * import Jsson._ is needed. | |
| * Note that this program change the semantics of standard -> operator. | |
| * I recommend that you use enclosing block with Jsson as followings: | |
| * { | |
| * import Jsson._ | |
| * val obj = %{ |
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
| #!/usr/bin/env bash | |
| # Formatting constants | |
| export BOLD=`tput bold` | |
| export UNDERLINE_ON=`tput smul` | |
| export UNDERLINE_OFF=`tput rmul` | |
| export TEXT_BLACK=`tput setaf 0` | |
| export TEXT_RED=`tput setaf 1` | |
| export TEXT_GREEN=`tput setaf 2` | |
| export TEXT_YELLOW=`tput setaf 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
| apply plugin: "java" | |
| apply plugin: "eclipse" | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| compile ( | |
| "org.jboss.netty:netty:latest.integration", |
NewerOlder