Skip to content

Instantly share code, notes, and snippets.

View thebigdatajedi's full-sized avatar
😄
Being awesome!

Gabe Cruz thebigdatajedi

😄
Being awesome!
View GitHub Profile
@thebigdatajedi
thebigdatajedi / callerName function.ts
Created December 17, 2022 13:43
You may never get a chance to use it. Who knows it may make a come back.
//tricky because it's becoming less and less supported but this is how you did it:
static callerName(func: Function): void {
let callingFunction: string = '';
callingFunction = func.caller.name;
const dateTime: string = this.getDateTime();
console.log('***-> ' + dateTime + ' <-###-> ' + func.name + ' is being called by: ' + callingFunction);
}
@thebigdatajedi
thebigdatajedi / Prompt for having ChatGPT-4, Copilot, Copilot for VSCode and Amazon Q return optimal results.
Last active February 15, 2024 02:44
Adding this gist to the end of a prompt to ChatGPT-4, Copilot, Copiot for VSCode and Amazon Q is working extremely well for me.
...and please explain it to me as if I was a 7-year-old. Would you give a detailed description with examples that are tied to a list of tasks? I better understand examples given to me when they are broken down into a list of tasks. My most optimal method of understanding ideas is using a carefully thought-out sequence-dependent tasks list. I don't know what I would do without a task list to take me through developing my tacit knowledge on a given subject and helping me understand from the simplest things to the most complex systems in the world.

###Understanding Java Version Queries

Java provides specific command-line options to check the installed version. The output can vary slightly based on the Java vendor (Oracle, OpenJDK, etc.) but generally follows a consistent format displaying the version, runtime environment, and VM information.

Here's a concise key/value pair list of commands you might use to query Java version information, along with the expected type of output for each:

  • java -version: This is the correct and standard command to get the Java version, the runtime environment, and VM details. Expected output: Detailed version information.

  • java --version: This is essentially the same as java -version and is accepted by newer versions of Java as a valid command. Expected output: Detailed version information, similar to java -version.