
Copying directories using SCP
SCP, or Secure Copy, is a command-line utility used to copy files and directories between two remote hosts over a secure SSH connection. It is a simple and secure way […]
I have 5+ years of working experience in JavaScript, Java and SQL.
SCP, or Secure Copy, is a command-line utility used to copy files and directories between two remote hosts over a secure SSH connection. It is a simple and secure way […]
Callbacks can be used to write clean implementations of anything Promises in Node.js. This is a sample code for an event driven architecture using callbacks.
Use the Composition API in Vue 3 to implement the pull-down loading function more conveniently. In the setup function, functions such as ref, reactive, and watchEffect can be used to implement […]
The gsutil stat command provides a strongly consistent way to check for the existence (and read the metadata) of an object. Use the following command: If this command returns 0 […]
In JavaScript, throw statement throws a user-defined exception. It can be an expression, values of primitive types or Objects. Here are a few examples. Source
Array destructuring assigns the properties of an array to variables with the same names by default. Object destructuring assigns the properties of an object to variables with the same names by default. Here is […]
Array destructuring assigns the properties of an array to variables with the same names by default. Here are a few examples. Source
To list only the file names using ls command we can pass -a option to it. You can sort the file names by passing | sort to the ls -a […]
where l is the list and n is the number of items in a chunk. Use xrange() instead of range() in the case of Python 2.x
This is very similar to finding min/max value from an array of primitive data.