Skip to content

Instantly share code, notes, and snippets.

View luke10x's full-sized avatar

Luke 10X luke10x

View GitHub Profile
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <iostream>
#ifdef __EMSCRIPTEN__
#include <emscripten.h>
#endif
// Screen dimensions
const int SCREEN_WIDTH = 800;
const int SCREEN_HEIGHT = 600;
@luke10x
luke10x / README-hi.md
Last active June 20, 2023 00:25
Alternatives to Arquillian

About dependency choice:

Wildfly + Resteasy is the best stack for production and it is from Red Hat

  • krazo-resteasy - is an extension for Wildfly
  • krazo-cxf - is an extension for TomEE
  • krazo-jersey - is an extension for Glassfish and Payara

Even though RestEasy is used for prod, Jersey is easier to setup in test environment,

import org.json.JSONObject;
import javax.swing.*;
import java.awt.*;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
public class SwingJwtHelper {
public static void main(String[] args) {
SwingUtilities.invokeLater(SwingAppUI::createAndShowGUI);
@luke10x
luke10x / Ansicolor.md
Last active November 17, 2022 23:30 — forked from raghav4/Ansicolor.md
Color codes for console using Ansi
=======================================================================================================
=======================================================================================================
All-about-reactive-programming-java
=======================================================================================================
=======================================================================================================
@luke10x
luke10x / All-About-java-JVM
Created August 24, 2022 09:45
All about JVM
=======================================================================================================
=======================================================================================================
All about java jvm
=======================================================================================================
=======================================================================================================
@luke10x
luke10x / All-about-core-java
Created August 23, 2022 22:51 — forked from sats17/All-about-core-java
Gist contains information about core java things.
===========================================================================================================================
===========================================================================================================================
===========================================================================================================================
All about core java
===========================================================================================================================
===========================================================================================================================
===========================================================================================================================
############################################################################################################
################## #############################
################## #############################
This Gist collection contains all localstack related examples
################## #############################
################## #############################
############################################################################################################
import sinon from 'sinon';
import { stubConstructor } from 'ts-sinon'
export class Calculator {
sum(exp: string): number;
sum(a: number, b: number): number;
sum(...args: any): number {
const summands = args.length === 1
? args[0].split('+').map((x: string) => parseFloat(x))
: args;
@luke10x
luke10x / GitCommitEmoji.md
Created October 20, 2020 09:33 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji