Skip to content

Instantly share code, notes, and snippets.

View richardschoen's full-sized avatar

Richard Schoen richardschoen

View GitHub Profile
@richardschoen
richardschoen / RtnDspAtr.RPGLE
Created January 7, 2025 13:12 — forked from chrishiebert/RtnDspAtr.RPGLE
RtnDspAtr Return Display Attribute hex code for RPGLE and 5250 screens.
// Based: Croy, Steve (2005) Display-attributes-made-simple/setcolor [Source code]. http://search400.techtarget.com/tip/Display-attributes-made-simple
// --------------------------------------------------
// Procedure name: RtnDspAtr
// Purpose: Return Display Attribute hex code that can be used on a
// screen to set color, underline, or other attributes.
// Returns: DSPATR hex value
// Parameter: Color Value - Text representing a color 'GRN' (default)
// other values: 'BLU' 'PNK' 'RED' 'TRQ' 'WHT' 'YLW'
@richardschoen
richardschoen / BL0100M01.rpgle
Created May 8, 2025 18:53 — forked from greghelton/BL0100M01.rpgle
AS400 command PINGJAVA communicates with a Java program via data queues (DTAQ)
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.
**********************************************************************

Beast Mode

Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.

Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1

Installation Instructions

  • Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
  • Select "Create new custom chat mode file"