Skip to content

Instantly share code, notes, and snippets.

View trplll's full-sized avatar

Luke trplll

  • Wisconsin
View GitHub Profile
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
public class AC Talend Functions {
/**
* JavaDateToJdeDate: translate from a Java Date to the JDEdwards Julian date format.
*
* {talendTypes} int | Integer
* {Category} User Defined
@trplll
trplll / ratioanaylsis.html
Created July 6, 2016 20:36
Basic Accounting Angular Ratio Analysis
<!DOCTYPE html>
<html lang="en">
<head>
<title>Ratio Analysis</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<!DOCTYPE html>
<html>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body>
<div ng-app="" ng-init="quantity=593117;scost=.2448;totalcost=138196.96;">
<h3>QTY</h3> <input ng-model="quantity">
<h3>Standard Cost</h3> <input ng-model="scost">
<h3>Actual Total Cost</h3><input ng-model="totalcost">
<p>QTY: {{ quantity }}</p>
@trplll
trplll / BSJAVALIST.java
Last active July 14, 2016 16:12
Bootstrap Java List
@GET
@Path("/LoadShipments/{loadNum}")
@Produces(MediaType.TEXT_HTML)
public String getLoadLots(@PathParam("loadNum") String loadNum)
{
String Yep= new String();
Yep="<!DOCTYPE html> <html lang=\"en\"> <head> <title>Shipments for Load"+loadNum+"</title> <meta charset=\"utf-8\"> <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"> <link rel=\"stylesheet\" href=\"http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css\"> <script src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js\"></script> <script src=\"http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js\"></script> </head> <body> <div class=\"container\"> <h2>Basic List Group</h2> <ul class=\"list-group\"> ";
logger.log(Level.getLevel("ACTIVITY"), "[getLoadLots] Getting lots on load " + loadNum);
Boolean explodeLoad = false;
ArrayList<String> tries = Load.getLoadFromDB(explodeLoad, loadNum).ShipList();
@trplll
trplll / JdeJavaJulianDateTools.java
Last active December 9, 2022 23:52
JD Edwards Julian and Java Date Conversions
package com.trplcd.jdejava;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
public class JdeJavaJulianDateTools {
public static class Methods {
/**
<!DOCTYPE html>
<html lang="en">
<head>
<title>Ratio Analysis</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="httpss://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
select TDOBNM,TDPSEQ,tdobnd,frdsca
from COPD810.F98710
join COPD810.F98711 on TDOBNM=THOBNM
join DD810.F9203 on FRDTAI=tdobnd
where tdobnm ='F9000'
order by tdobnm ,tdpseq asc
@trplll
trplll / javalocalsysteminfoexample.java
Created August 17, 2016 15:08
Using Java to find information about the local machine and java config in windows
package basics;
import java.awt.List;
import java.io.PrintStream;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.Properties;
@trplll
trplll / javajdedatetools.java
Created August 17, 2016 15:10
Java JDE-Style Julian Date tools and conversions
package basics;
import java.text.Format;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.time.format.FormatStyle;
import java.util.Calendar;
import java.util.Date;