Note
This no longer works in browser!
This no longer works if you're alone in vc! Somebody else has to join you!
Warning
There are now two quest types ("stream" and "play")! Pay attention to the instructions!
/* | |
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 }, |
/** | |
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]); | |
*/ |
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 \ |
/** | |
* 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.`)) |
/** Example of a {@link Class} declaration */ | |
public final class MyClass { | |
private boolean someBool; | |
public MyClass() { | |
} | |
public MyClass(boolean someBool) { | |
this.someBool = someBool; | |
} |