Extract all exif data as list into a json file:
exiftool -j -q dir > data.json
Sort the exif data by the original creation time:
jq 'sort_by(.DateTimeOriginal)' data.json
import { combineReducers, Action } from '@reduxjs/toolkit'; | |
const withClearStateOnAction = <S = any>(clearStateAction: Action) => ( | |
reducer: Reducer<S | undefined, Action>, | |
) => (state: S, action: Action) => { | |
if (clearStateAction.type === action.type) { | |
return reducer(undefined, clearStateAction); | |
} | |
return reducer(state, action); | |
}; |
What helped me to get everything running on my Apple Macbook with the M1 chip:
arm64
-architecture by running uname -m
. If it’s x86_64
, you’re running on Rosetta (see https://earthly.dev/blog/using-apple-silicon-m1-as-a-cloud-engineer-two-months-in/)pod install
in your iOS-folder, everything should be working flawless :)const padArrayEnd = <T>(arr: T[], targetLength: number, val: T): T[] => { | |
if (arr.length >= targetLength) return [...arr] | |
return arr.concat(Array(targetLength - arr.length).fill(val)) | |
} | |
console.log(padArrayEnd(["0", "1"], 3, "")) | |
console.log(padArrayEnd(["0", "1", "2"], 3, "")) | |
console.log(padArrayEnd(["0", "1", "2", "3"], 3, "")) |