Skip to content

Instantly share code, notes, and snippets.

CREATE TABLE edge_qrtz_job_details
(
SCHED_NAME VARCHAR(120) NOT NULL,
JOB_NAME VARCHAR(200) NOT NULL,
JOB_GROUP VARCHAR(200) NOT NULL,
DESCRIPTION VARCHAR(250) NULL,
JOB_CLASS_NAME VARCHAR(250) NOT NULL,
IS_DURABLE BOOL NOT NULL,
IS_NONCONCURRENT BOOL NOT NULL,
IS_UPDATE_DATA BOOL NOT NULL,
new ExampleMessageEvent("ExampleMessageEvent " + System.currentTimeMillis(), (e) -> System.out.println("Response " + e.getResponse());
new ExampleMessageEvent("ExampleMessageEvent " + System.currentTimeMillis(), (e) -> System.out.println("Response " + e.getResponse());
[color]
ui = true
[alias]
ci = commit
co = checkout
d = diff
di = diff
br = branch
st = status
l = log --stat
@jmayaalv
jmayaalv / imspush.sh
Last active October 21, 2015 20:04
Stg Prod Relese
stg:prod)
SRCDIR=/Users/jmaya/Documents/workspace/release/st_george/prod/beluca
DESTDIR=stage-ims
DESTSERVER=stgweb1
IMSDIR=/usr/local/staging
cd $SRCDIR
git co st_george
git pull origin st_george
mvn clean install -DskipTests=true
cd ims-web
@jmayaalv
jmayaalv / IGasOrderImporterImpl.java
Created November 3, 2015 22:39
Import Open Account changes
private void importOpenAccountCommand(String xml) {
//load product code.
//find strategy - Ex: TransactionFactoryStrategy
// execute import command = stratgegy.import(xml)
PolicyXmlOrder xmlOrder = new PolicyXmlOrder(xml);
OpenAccountCommand command = xmlOrder.command();
this.tradingApplicationServices.openAccount(command);
}
@jmayaalv
jmayaalv / POL_870_20151020_175252176.xml
Created November 3, 2015 22:48
Production POL file for Index Product
<MSG>
<HEADER>
<FILE_NAME>POL_870_20151020_175252176.xml</FILE_NAME>
<FILE_TYPE>POLICY</FILE_TYPE>
<TENANT>1697</TENANT>
</HEADER>
<BODY>
<POLICY>
<PROPOSAL_NO>I100000548</PROPOSAL_NO>
<PLAN_NO>100</PLAN_NO>
testNotSatisfiedNoPremiumReceivedSmallContrib(ims.clienttransaction.workflow.spec.AcctInvestmentPremiumReceivedMaxDifferenceTest) Time elapsed: 0.012 sec <<< ERROR!
java.lang.NullPointerException: null
at ims.clienttransaction.workflow.spec.AcctInvestmentPremiumReceivedMaxDifference.invalidDelta(AcctInvestmentPremiumReceivedMaxDifference.java:74)
at ims.clienttransaction.workflow.spec.AcctInvestmentPremiumReceivedMaxDifference.isSatisfiedBy(AcctInvestmentPremiumReceivedMaxDifference.java:49)
at ims.clienttransaction.workflow.spec.AcctInvestmentPremiumReceivedMaxDifferenceTest.testNotSatisfiedNoPremiumReceivedSmallContrib(AcctInvestmentPremiumReceivedMaxDifferenceTest.java:63)
testNotSatisfiedNoPremiumReceived(ims.clienttransaction.workflow.spec.AcctInvestmentPremiumReceivedMaxDifferenceTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NullPointerException: null
at ims.clienttransaction.workflow.spec.AcctInvestmentPremiumReceivedMaxDifference.invalidDelta(AcctInvestmentPremiumReceivedMaxDifference.java:7
@jmayaalv
jmayaalv / gist:c3ddcbec479d492284b5e90bd24b8f7e
Created June 21, 2018 12:00
Avoid problems with Fira on mac
(when (window-system)
(set-default-font "Fira Code"))
(let ((alist '((33 . ".\\(?:\\(?:==\\|!!\\)\\|[!=]\\)")
(35 . ".\\(?:###\\|##\\|_(\\|[#(?[_{]\\)")
(36 . ".\\(?:>\\)")
(37 . ".\\(?:\\(?:%%\\)\\|%\\)")
(38 . ".\\(?:\\(?:&&\\)\\|&\\)")
(42 . ".\\(?:\\(?:\\*\\*/\\)\\|\\(?:\\*[*/]\\)\\|[*/>]\\)")
(43 . ".\\(?:\\(?:\\+\\+\\)\\|[+>]\\)")
(45 . ".\\(?:\\(?:-[>-]\\|<<\\|>>\\)\\|[<>}~-]\\)")
(def cofx-now
"injects current time to context"
{:enter (fn [ctx]
(assoc-in ctx [:request :now] (java.util.Date.)))})
;; interceptor, in enter update value in `[:request :x]` with `inc`
(def inc-x-interceptor
{:enter (fn [ctx]
(update-in ctx [:request :x] inc))})