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
package com.testing; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.util.Properties; | |
public class PropertiesExample { | |
public PropertiesExample() throws IOException { | |
Properties properties = new Properties(); | |
InputStream propertiesStream = PropertiesExample.class.getClassLoader().getResourceAsStream("testthis.properties"); | |
properties.load(propertiesStream); |
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
package com.testing; | |
import java.util.Arrays; | |
import java.util.List; | |
import rx.Observable; | |
import rx.functions.Action1; | |
public class RxObservableApp { | |
List<String> helloList; | |
Observable<String> observatory; | |
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
ctl-opt nomain; | |
ctl-opt Option(*Srcstmt:*Nodebugio:*NoUnRef) | |
Debug( *Yes ) Bnddir('QUSAPIBD'); | |
********************************************************************** | |
********************************************************************** | |
* Program Id: BL0100M01 | |
* This program gets the latitude and longitude from the data | |
* queues from java program JsonDataQueues and sends commands | |
* to ping and shutdown the java app. | |
********************************************************************** |
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
ctl-opt Main(Main) option(*srcstmt:*nodebugio:*nounref); | |
// ************************************************************** | |
// CRTDTAQ DTAQ(qtemp/DTAQ512) MAXLEN(526) SEQ(*KEYED) KEYLEN(14) | |
// crtpgm dataqtests module(dataqtests dataqueues) | |
// ************************************************************** | |
dcl-proc Main; | |
dcl-pi *N; | |
end-pi; | |
dcl-pr arrayPut INT(10) extproc(*DCLCASE); |
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
import org.apache.logging.log4j.LogManager; | |
import org.apache.logging.log4j.Logger; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.util.Properties; | |
import com.ibm.as400.access.AS400; | |
import com.ibm.as400.access.AS400SecurityException; | |
import com.ibm.as400.access.DataQueue; | |
import com.ibm.as400.access.ErrorCompletingRequestException; | |
import com.ibm.as400.access.IllegalObjectTypeException; |
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
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Set; | |
public class FipCodes { | |
String state; | |
String stateCode; |
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
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
import java.net.URLEncoder; | |
import org.apache.logging.log4j.LogManager; | |
import org.apache.logging.log4j.Logger; | |
import com.google.gson.JsonArray; | |
import com.google.gson.JsonElement; | |
import com.google.gson.JsonObject; |
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
boolean failed = false; | |
static final String key = "get this from google"; | |
static final String id = "get this from google"; | |
static final GeoApiContext context | |
= new GeoApiContext().setEnterpriseCredentials(id, key); | |
try { | |
GeocodingResult[] result | |
= GeocodingApi.geocode(context, address).await(); | |
double lat = result[0].geometry.location.lat; | |
double lng = result[0].geometry.location.lng; |
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
// run on Ubuntu since node-jt400 fails to install on Windows. | |
var express = require('express'); | |
var app = express(); | |
var pool = require('node-jt400').pool( | |
{host: 'DPITEST', user: 'GAH285', password: 'guess-again'}); | |
app.get('/', function(req, res) { | |
pool.query('SELECT * FROM GAH285/FUNNYFILE') | |
.then(function(results) { | |
console.log(results[0]); |
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
* Logstasher - program to run as RCVJRNE exit point. | |
* It will create tables of journal records in which the blob | |
* field JOESD is parsed into the fields of the record that | |
* is the subject of the journal record. | |
* - - - - - - - - - - - - - - - - - - - - - - - - | |
* dependencies | |
* 1. LOGSTASH Data Area provides properties | |
* 2. FLATFILE Physical File required for compile | |
* 3. QCMDEXC | |
* 4. SQL |