Skip to content

Instantly share code, notes, and snippets.

/**
* Generate acc validation response object.
*
* @param xmlString the xml string
*
* @return the com.zzz.cap.xml.accountvalres. postpaid account validation
* response
*
* @throws Exception the exception
*/
strBuffer.append("orderTotal " + orderTotal + NEWLINE);
public class XxxxxManager extends GenericService {
private static final String NO = "N";
private static final String YES = "Y";
private static final String TRUESTR = "true";
private static final String FALSESTR = "false";
...
if (availableCode != null && availableCode.equals(NO)) {
resultHash.put(id, Boolean.valueOf(FALSESTR));
# ec2 ami-1515f67c
sudo sed -i 's/universe/multiverse universe/' /etc/apt/sources.list
sudo sed -i 's/karmic main/karmic restricted main/' /etc/apt/sources.list
sudo apt-get update
sudo apt-get install -y ruby ruby1.8-dev libopenssl-ruby1.8 rdoc ri irb build-essential wget ssl-cert sudo git-core rake librspec-ruby libxml-ruby thin couchdb zlib1g-dev libxml2-dev
mkdir ~/src
cd ~/src
wget http://rubyforge.org/frs/download.php/69365/rubygems-1.3.6.tgz
tar zxf rubygems-1.3.6.tgz
# copies, jar
1 CcxClientApi.jar
1 GroboCodeCoverage-1.1.0-aitests.jar
1 GroboCodeCoverage-1.1.0-ant.jar
1 GroboCodeCoverage-1.1.0-core.jar
1 GroboCodeCoverage-1.1.0-eutests.jar
1 GroboCodeCoverage-1.1.0-iutests.jar
1 GroboCodeCoverage-1.1.0-runtime.jar
1 GroboCodeCoverage-1.1.0-utests.jar
1 GroboPMTI-1.0.0alpha3-aitests.jar
(ns webui.core
(:use compojure.core
ring.adapter.jetty
compojure.response
[ring.util.response :only (response content-type)]
fleet)
(:require [compojure.route :as route])
(:gen-class))
(fleet-ns views "templates")
@mtnygard
mtnygard / Compilation errors
Created March 13, 2011 04:04
Parser generated from ImaginaryNode.g
/Users/mtnygard/work/atg-xref/indexer/src/gen-java/ImaginaryNodeBugParser.java:139: illegal start of expression
if ( !() ) {
^
/Users/mtnygard/work/atg-xref/indexer/src/gen-java/ImaginaryNodeBugParser.java:142: illegal start of expression
while ( ) {
^
@mtnygard
mtnygard / gist:2254147
Created March 30, 2012 19:10
Books I recommended today
@mtnygard
mtnygard / gist:2638441
Created May 8, 2012 18:49
Books I recommended today - May 8, 2012
@mtnygard
mtnygard / gist:3306775
Created August 9, 2012 18:20
Retriable functions, written in CPS
(ns planck-server-nio.common
(:require (clojure.algo [monads :as m])))
(defn fail [x] (fn [c] nil))
(defn attempt [[a t f]]
(fn [c]
(if-let [result (f)]
result
(c [(inc a) t f]))))