Skip to content

Instantly share code, notes, and snippets.

View damithsj's full-sized avatar

Damith Jinasena damithsj

View GitHub Profile
@damithsj
damithsj / IFS_DATAService.dbs
Created June 1, 2017 18:21
WSO2EI DataSource for IFS Database
<data name="IFSAPP9PROD" serviceNamespace="IFS" transports="http https local">
<description>IFS App9 Production</description>
<config enableOData="false" id="IFSAPP9PROD">
<property name="driverClassName">oracle.jdbc.driver.OracleDriver</property>
<property name="url">jdbc:oracle:thin:@<DBHOST>:1521:<SID></property>
<property name="username"><APPOWNER></property>
<property name="password"><APPOWNER_PW></property>
</config>
<query id="SELECT_ALL_WO_QUERY" useConfig="IFSAPP9PROD">
<sql>select CONTRACT, ORG_CODE, MCH_CODE, MCH_CODE_DESCRIPTION, MCH_CODE_CONTRACT, WO_NO, REG_DATE, ERR_DESCR, PLAN_S_DATE, REPORTED_BY, PART_NO, STATE from ACTIVE_SEPARATE</sql>
@damithsj
damithsj / linspaceCpp
Created August 27, 2014 12:07
C++ implementation of linspace function in MatLab. This function generates N points between min and max and return as vector.
#include <cmath>
#include <vector>
using namespace std;
//linspace function in MatLab. hacked the code ;)
// ...\toolbox\matlab\elmat\linspace.m
//generates N points between min and max and return as vector.
vector<double> linspace(double min, double max, int n)
{