Since a LOT of people like the way it looks, and wanted to know how to make it, here is the code :3
Preview
/** Example of a {@link Class} declaration */ | |
public final class MyClass { | |
private boolean someBool; | |
public MyClass() { | |
} | |
public MyClass(boolean someBool) { | |
this.someBool = someBool; | |
} |
/** | |
* Little helper for creating "side effects" with TypeScript | |
* @param effect {Promise<T> | Function} Function or promise to call independently | |
* @param caller {string} Name of side effect, useful for logging | |
*/ | |
export function sideEffect(effect: Promise<any> | Function, caller: string): void { | |
if (effect instanceof Promise) { | |
effect | |
.then(() => console.log(`Side effect "${caller}" completed without errors.`)) |
FROM amazoncorretto:17-alpine as corretto-deps | |
COPY ./greetings/build/libs/greetings.jar /app/ | |
RUN unzip /app/greetings.jar -d temp && \ | |
jdeps \ | |
--print-module-deps \ | |
--ignore-missing-deps \ | |
--recursive \ | |
--multi-release 17 \ |
/** | |
Do you need to handle a potential RangeError (Max call stack size exceeded) because of a recursive function? | |
Maybe the input should change in several ranges basing on random criterias? | |
Please don't try/catch things lot of times, use this :) | |
Example Usage: | |
[ this is my recursive function ] [these are my fn args], [this are values that will be tried instead of 'ITERATE' arg ] | |
const simplifiedTrack: FeatureCollection = handleSyncRecursion(simplifyGeoJsonWithMaxPointsLimit, [track, 50, 'ITERATE'], [0.001, 0.005, 0.008, 0.01]); | |
*/ |
/* | |
Merging all the times <entity>.module.ts and fake module instantation is boring for all, so let's help us using this structure. | |
*/ | |
export const moduleConf = { | |
imports: [ | |
TracksModule, | |
MongooseModule.forFeature([{ name: Entity.name, schema: EntitySchema }]), | |
MongooseModule.forFeature([ | |
{ name: SecondEntity.name, schema: SecondEntitySchema }, |