How to enable function keys
echo 0 | sudo tee /sys/module/hid_apple/parameters/fnmode
https://blog.colinwaddell.com/keychron-function-keys-configuration/
var spawn = require('child_process').spawn, | |
un = spawn('git', ['config', 'user.name', 'Batman']), | |
ue = spawn('git', ['config', 'user.email', 'batman@gotham.com']), | |
g = spawn('git', ['commit', '-am', "Jooooooker"]); | |
un.stdout.on('data', function (data) { | |
console.log('un stdout: ' + data); | |
}); | |
ue.stdout.on('data', function (data) { |
How to enable function keys
echo 0 | sudo tee /sys/module/hid_apple/parameters/fnmode
https://blog.colinwaddell.com/keychron-function-keys-configuration/
var daysOfWeek = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']; | |
var inputCalories = [3500, 1500, 1800, 2300, 2400, 1500, 1500]; | |
// const caloriesByDay = daysOfWeek.map(function(day, index) { | |
// return { | |
// [day]:inputCalories[index] | |
// } | |
// }) |
I hereby claim:
To claim this, I am signing this object:
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
If you work across many computers (and even otherwise!), it's a good idea to keep a copy of your setup on the cloud, preferably in a git repository, and clone it on another machine when you need.
Thus, you should keep the .vim
directory along with your .vimrc
version-controlled.
But when you have plugins installed inside .vim/bundle
(if you use pathogen), or inside .vim/pack
(if you use Vim 8's packages), keeping a copy where you want to be able to update the plugins (individual git repositories), as well as your vim-configuration as a whole, requires you to use git submodules.
Initialize a git repository inside your .vim
directory, add everything (including the vimrc), commit and push to a GitHub/BitBucket/GitLab repository:
cd ~/.vim
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
const grandParent = document.getElementById("grandParent") | |
const parent = document.getElementById("parent") | |
const counter = document.getElementById("counter") | |
let count = 0 | |
function increaseCounter(event) { | |
event.preventDefault() | |
// if we don't stop propagation, the this function will run on both event listeners, thus increasing count by 2 | |
// event.stopPropagation() | |
count += 1 |
(function () { | |
document.querySelectorAll('.search-results__listing').forEach(el => { | |
const price = el.querySelector('.listing-result__price') && | |
el.querySelector('.listing-result__price').innerText.toLowerCase(); | |
price === 'deposit taken' && el.remove(); | |
}) | |
})() |