Skip to content

Instantly share code, notes, and snippets.

View peppertech's full-sized avatar

John Brock peppertech

View GitHub Profile
import { ComponentProps } from "preact";
import { useEffect, useRef } from "preact/hooks";
import "ojs/ojtable";
import { ojTable } from "ojs/ojtable";
import MutableArrayDataProvider = require("ojs/ojmutablearraydataprovider");
type Movie = {
id: number;
overview: string;
title: string;
@peppertech
peppertech / index.html
Created February 15, 2022 17:47 — forked from adunkman/index.html
Relay messages from RabbitMQ to a browser using Socket.io
<!DOCTYPE html>
<html>
<head>
<script src="/socket.io/socket.io.js"></script>
<script>
(function () {
var onMessage = function (data) {
// Do something with the message data
};
@peppertech
peppertech / findmodules
Last active September 12, 2020 00:13
Short nodejs script for defining all JET modules used in an application. Run from the root of the project to get the report.
const path = require("path");
const fs = require("fs");
const dir = "./src/js";
const filter = "ojs/oj*";
const ext = ".js";
let allModules = new Set();
function searchFilesInDirectory(dir, filter, ext) {
if (!fs.existsSync(dir)) {
@peppertech
peppertech / before_serve.js
Created August 28, 2020 17:59
before_serve hook with SSL and url-rewrite rules defined
/**
Copyright (c) 2015, 2020, Oracle and/or its affiliates.
Licensed under The Universal Permissive License (UPL), Version 1.0
as shown at https://oss.oracle.com/licenses/upl/
*/
"use strict";
module.exports = function (configObj) {
{
"items": [
{
"id": 13,
"creationDate": "2019-04-04T20:03:25+00:00",
"lastUpdateDate": "2019-04-05T21:45:13+00:00",
"createdBy": "john.jullion-ceccarelli@oracle.com",
"lastUpdatedBy": "john.jullion-ceccarelli@oracle.com",
"BillToCustomerNumber": "50020",
"BusinessUnit": "Paris Bakery",
@peppertech
peppertech / themespecs
Created March 16, 2019 21:23
Some possible specs for use in a custom theme
Theming training outline
style guide attributes needed:
Base brand color : #0070ad
Base font size : unknown
Base font family (if not system fonts) : Ubuntu
Button border radius : 100px
Primary button color : #0070ad
@peppertech
peppertech / seriesOneData.json
Created March 15, 2019 19:37
sample data for testing OracleJET Timeline component
[
{
"id":12345,
"title":"Oracle Application Express",
"start": "Jan 13, 2010",
"end": "Jan 14, 2010",
"description":"Jan 13, 2010"
},
{
"id":"e2",
@peppertech
peppertech / erpData2.json
Last active April 8, 2019 10:14
Sample data from ERP type service
{
"items": [
{
"InvoiceId": 45,
"InvoiceNumber": "JGA 2012155",
"InvoiceCurrency": "USD",
"InvoiceAmount": 98346.33,
"InvoiceDate": "2012-01-21",
"BusinessUnit": "US1 Business Unit",
"Supplier": "JGA",

Keybase proof

I hereby claim:

  • I am peppertech on github.
  • I am peppertech (https://keybase.io/peppertech) on keybase.
  • I have a public key ASD_W6M6r1YepbRQm1Weifc1RPlOxti5Nf7lL0R0xjbtzgo

To claim this, I am signing this object: