# 1. Open the below file with vim
sudo vim /etc/bluetooth/main.conf
# 2. Change the value of this field to bredr
ControllerMode = bredr
# 3. Save and Exit from Vim.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"Currency Name": "United Arab Emirates Dirham", | |
"ISO Code": "AED" | |
}, | |
{ | |
"Currency Name": "Albanian lek", | |
"ISO Code": "ALL" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local feline = require('feline') | |
local vi_mode = require('feline.providers.vi_mode') | |
-- | |
-- 1. define some constants | |
-- | |
-- left and right constants (first and second items of the components array) | |
local LEFT = 1 | |
local RIGHT = 2 |
Check this out on Dev.to
- How to handle SSH keys with ec2-github actions https://zellwk.com/blog/github-actions-deploy/
- SSH_PRIVATE_KEY
- HOST_NAME / IP_ADDRESS
The ESM standard is considered stable in NodeJS and well supported by a lot of modern JavaScript tools.
ESLint does a good job validating and fixing ESM code (as long as you don't use top-level await, coming in ESLint v8). Make sure to enable the latest ECMA features in the ESLint config.
- .eslint.json
{
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Inverts the integers of an array | |
const invert = arr => arr.map(n => -n); | |
invert([2,-5]); //=> [-2,5] |
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
- Use ESM yourself. (preferred)
Useimport foo from 'foo'
instead ofconst foo = require('foo')
to import the package. You also need to put"type": "module"
in your package.json and more. Follow the below guide. - If the package is used in an async context, you could use
await import(…)
from CommonJS instead ofrequire(…)
. - Stay on the existing version of the package until you can move to ESM.
NewerOlder