How can one use a function imported from another script in a vue component?

If you are developing multiple components in Vue, you might be facing the situation that you have the following folder structure: . โ””โ”€โ”€ src/ โ””โ”€โ”€ components/ โ”œโ”€โ”€ utils/ โ”‚ โ””โ”€โ”€ some_cool_functions.js โ”œโ”€โ”€ component_a.vue โ””โ”€โ”€ component_b.vue $ cat some_cool_functions.js export function function_b(id) { console.log("Do some stuff in function a " + id) } export function function_b(id) { console.log("Do some stuff in function b " + id) } <template> <div> .... <v-btn @click="function_a(item....

November 30, 2023 ยท 1 min ยท Moritz Gnisia

What do you need to login into a EC2 instance via SSM?

Make sure you have an AMI where the SSM Agent is installed. If this is not the case update the user-data to install the agent VPC: Instance is running in a private subnet -> Ensure you have a NAT Gateway Instance is running in a public subnet -> Internet Access must be given / Ensure you have a Internet Gateway In both cases you need to allow HTTPS outgoing traffic (this means 443 with 0....

November 24, 2023 ยท 1 min ยท Moritz Gnisia

How to straighten PDFs on MacOS with PDFScanner

With the Software PDFScanner you can automatically straighten PDFs which you have scanned. Just enable the Deskew after scan option.

November 24, 2023 ยท 1 min ยท Moritz Gnisia

Overview

June 28, 2020 ยท 1 min ยท Moritz Gnisia

Coding In this section you find various post about different programming languages such as: C++ Python Matlab

June 24, 2020 ยท 1 min ยท Moritz Gnisia