This file stores a few git configurations I use everywhere.
- Create a
.gitconfigfile in the folder you want to have a specific user
nano ~/projects/client-a/.gitconfig| // Place this file next to `settings.json` (/Library/Application Support/Code/User on MacOS) to be global | |
| // Custom tasks documentation: https://code.visualstudio.com/docs/editor/tasks#_custom-tasks | |
| // Task user input documentation: https://code.visualstudio.com/docs/editor/variables-reference#_input-variables | |
| { | |
| // See https://go.microsoft.com/fwlink/?LinkId=733558 | |
| // for the documentation about the tasks.json format | |
| "version": "2.0.0", | |
| "tasks": [ | |
| { |
| @Target({ FIELD }) | |
| @Retention(RUNTIME) | |
| @Documented | |
| @Constraint(validatedBy = { EnumRestreintValidator.class }) | |
| public @interface EnumRestreint { | |
| String message() default "The enum value is not included in the possibles values."; | |
| String[] authorizedFields() default {}; | |
| Class<?>[] groups() default {}; |
| repeatRequests(req, endpoint, callback): any{ | |
| // Array of all results, returned to the subscribe | |
| let tempArray = []; | |
| // Recursive lambda function to chain all observables sequentially | |
| const recursive = (req, endpoint, callback) => { | |
| return this.httpService.get(endpoint).pipe( | |
| flatMap((res) => { | |
| callback(res.data.items); | |
| // Concat all results in the result array |