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
{"app":"OrbitLite","next_release":"01-02-2014","url":"http://41.210.174.70/orbitlitews/OrbitLite","version":"1.0"} |
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
{"app":"Wiffy","next_release":"01-02-2014","url":"http://41.210.174.70/orbitlitews/OrbitLite","version":"1"} |
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
{"app":"OrbitLite","expiry_date":"7-4-2015","url":"http://41.210.174.70:8080/NepStore","duration":"1"} |
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
{"app":"OrbitLite","next_release":"01-02-2014","url":"http://41.210.174.70/orbitlitews/OrbitLite","duration":"1"} |
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
OutputStream os = null; | |
InputStream is = null; | |
HttpURLConnection conn = null; | |
try { | |
URL url = new URL( | |
"http://aristeu.pt/aristGas/ws/cliente/index.php/"); | |
JSONObject jsonParam = new JSONObject(); | |
jsonParam.put("Nome", ""); |
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
String getTime(String dateString){ | |
Calendar calendar = GregorianCalendar.getInstance(); | |
try { | |
String newString = null; | |
if(dateString.contains("+")) | |
newString = dateString.substring(0, dateString.indexOf("+")); | |
DateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:sss"); | |
Date date = format.parse(newString); | |
calendar.setTime(date); | |
} catch (ParseException e) { |
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
@Override | |
@WebMethod(operationName = "fundsTransfer") | |
public TransferResponse fundsTransfer( | |
@WebParam(name = "transferRequest") @XmlElement(required = true) TransferRequest[] transferRequest) { | |
if (transferRequest == null) { | |
return TransferResponse.builder().responseCode("").responseMsg("").build(); | |
} | |
try (TxnManager manager = TxnManager.getSession()) { | |
AccountRequest balanceBuild = new AccountRequest(); | |
double totalAmount = 0; |
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 test; | |
import java.rmi.RemoteException; | |
import java.util.Calendar; | |
import java.util.HashMap; | |
import java.util.Map; | |
import javax.xml.rpc.Stub; | |
import com.neptunesoftware.beans.Transaction; |
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
public boolean isProductPermitted(String acctNo) { | |
try (Statement stmt = MobileControl.handles[connIndex].createStatement()) { | |
StringBuilder builder = new StringBuilder("select b.prod_cd from ").append(MainClass.CORE_SCHEMA) | |
.append(".account a, ").append(MainClass.CORE_SCHEMA) | |
.append(".product b where a.prod_id = b.prod_id and trim(a.acct_no) = '").append(acctNo) | |
.append("' and rec_st = 'A' and b.prod_cd in ("); | |
for (String prod : MainClass.ALLOWED_PRODUCTS_CODES) { | |
builder.append("'").append(prod).append("',"); | |
} |
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
//fib(0) = 0, fib(1) = 1, fib(n) = fib(n-1) + fib(n-2) | |
func fib() func() int { | |
a, b := 0, 1 | |
return func() int { | |
defer func() { | |
a, b = b, a+b | |
}() | |
return a | |
} |
OlderNewer