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
var http = require('http'), | |
io = require('socket.io'), | |
sys = require('sys'), | |
express = require('express'), | |
fs = require('fs'); | |
var port = 8111; | |
var app = express(); | |
app.use(express.errorHandler({showStack: true, dumpExceptions: true})); |
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
<div id="asyncCall" style="width: 10px;"> | |
<input id="moneyman" style='width:190px;' type="button" value="Request Money"> | |
<span id="asyncErrors" style="color:red;"></span> | |
</div> |
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
$('#moneyman').each(function() { | |
$("<button id='moneyman'><img src='/ap/resources/images/299.GIF' />).attr( | |
{ name: this.name, | |
value: this.value | |
}).insertBefore(this); | |
}).remove(); |
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
{ | |
"links":[ | |
{ | |
"rel":"addphone", | |
"href":"http://localhost:8080/rest/account/v1/addphone", | |
"httpMethod":"POST", | |
"stateTransitionVars":{ | |
"phoneNumber": { | |
"countryCode": "", | |
"phoneNumber": "" |
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
var fs = require('fs'), | |
crypto = require('crypto'), | |
algorithm = 'aes-256-ctr', | |
password = 'd6F3Efeq', | |
payload = { | |
"id": "12345", | |
"description": "description", | |
"location": "123 street", | |
"userIdentity": { | |
"phoneNumber": "5550000000", |
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
FROM centos:centos6 | |
#Install WGET | |
RUN yum install -y wget | |
#Install tar | |
RUN yum install -y tar | |
# Download JDK | |
RUN cd /opt;wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.tar.gz; pwd |
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
curl -X POST --data <filename> http://<URL> -H "key:value>" -H "<if multiple headers>" |
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
// ---------------------------------------------------------- | |
// A short snippet for detecting versions of IE in JavaScript | |
// without resorting to user-agent sniffing | |
// ---------------------------------------------------------- | |
// If you're not in IE (or IE version is less than 5) then: | |
// ie === undefined | |
// If you're in IE (>=5) then you can determine which version: | |
// ie === 7; // IE7 | |
// Thus, to detect IE: | |
// if (ie) {} |
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
labels = document.getElementsByTagName('label'); | |
len = labels.length; | |
for(var i = 0; i < len; i++) { | |
if(labels[i].htmlFor == elementId) { | |
errLabel= labels[i].innerHTML; | |
} | |
} |
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
<li><a href="/campaignManagerWeb/mb/createsmspushoffer">Create .....</a></li> | |
<!-- add the above to the ul and no div container for it --> | |
<!-- issues: 1.cmsleftmenu.jsp taken out 2.pagination calls must be turned to ajax calls in order to keep content within tab otherwise goes to page --> |