Skip to content

Instantly share code, notes, and snippets.

View andirady's full-sized avatar
🏠
Working from home

andirady

🏠
Working from home
View GitHub Profile
@phillipgreenii
phillipgreenii / README.md
Last active May 29, 2024 07:10
Running NPM Scripts through maven

I am in the process of introducing single page applications to where I work. For development, using node based build tools is much easier for the single page applications. However, the build process for our organization is based upon maven. Our solution started with the maven plugin frontend-maven-plugin. It worked great at first, but then we ran into a situation that I couldn't make work with it.

As stated before, at our organization, we have the older ecosystem which is maven and the newer ecosystem which is node. Our goal was to keep the hacking to a minimum. We did this by putting all of the hacks into a single super node based build file. This is what maven calls and the reason frontend-maven-plugin wasn't sufficient. The super node based build script calls all of the other build scripts by spawning npm run. Try as I might, I could not figure out how to make the spawn work. front-end-maven-plugin downloads npm

@i-sannikov
i-sannikov / LoadModule.java
Created January 23, 2018 11:55
JAVA9 load module in runtime
import java.lang.module.ModuleFinder;
import java.lang.module.ModuleReference;
import java.lang.reflect.Method;
import java.util.Optional;
public class LoadModule {
public static void main(String[] args) throws Exception {
load("java.activation");
}
@cardil
cardil / JEP.md
Last active June 18, 2024 20:42
[Draft] JEP - Change name of imported type (aliasing)

Summary

Change name of imported type (aliasing)

Goals

The goal is to make code more productive and clean in cases where multiple classes with same name must be used in code. It should relief a developers frustration in that

@probonopd
probonopd / Wayland.md
Last active July 17, 2024 13:02
Think twice about Wayland. It breaks everything!

Think twice before abandoning Xorg. Wayland breaks everything!

Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating everyone else (e.g., people using just an X11 window manager or something like GNUstep) in the process.

The Wayland project seems to operate like they were starting a greenfield project, whereas at the same time they try to position Wayland as "the X11 successor", which would clearly require a lot of thought about not breaking, or at least providing a smooth upgrade path for, existing software.

In fact, it is merely an incompatible alternative, and not e

@akmalhazim
akmalhazim / postcodes.json
Created June 25, 2021 21:03
Get short-formed state by post code - useful for calculating shipping price via external provider
{"1750":"pls","5110":"kdh","5330":"kdh","7520":"kdh","8170":"kdh","10000":"png","10020":"png","10050":"png","10100":"png","10110":"png","10150":"png","10160":"png","10200":"png","10250":"png","10300":"png","10350":"png","10400":"png","10420":"png","10450":"png","10460":"png","10470":"png","10500":"png","10502":"png","10503":"png","10504":"png","10505":"png","10506":"png","10508":"png","10512":"png","10514":"png","10516":"png","10518":"png","10520":"png","10524":"png","10534":"png","10538":"png","10540":"png","10542":"png","10546":"png","10550":"png","10551":"png","10552":"png","10558":"png","10560":"png","10564":"png","10566":"png","10570":"png","10576":"png","10578":"png","10582":"png","10590":"png","10592":"png","10593":"png","10594":"png","10596":"png","10600":"png","10604":"png","10609":"png","10610":"png","10612":"png","10620":"png","10622":"png","10626":"png","10628":"png","10634":"png","10646":"png","10648":"png","10660":"png","10661":"png","10662":"png","10668":"png","10670":"png","10672":"png","10673