You have installed GPG, then tried to commit and suddenly you see this error message after it:
error: gpg failed to sign the data
fatal: failed to write commit object
Debug
Picking the right architecture = Picking the right battles + Managing trade-offs
An extension to add semicolons or anything you want at the end of a line
https://marketplace.visualstudio.com/items?itemName=uriberman.colonizer
Adds the ability to go to only method symbols declared in the active document
https://marketplace.visualstudio.com/items?itemName=trixnz.go-to-method
Re-indents pasted code to match the destination\
# Script to generate a new block every minute | |
# Put this script at the root of your unpacked folder | |
#!/bin/bash | |
echo "Generating a block every minute. Press [CTRL+C] to stop.." | |
address=`./bin/bitcoin-cli getnewaddress` | |
while : | |
do |
$aliceblue: #f0f8ff; | |
$antiquewhite: #faebd7; | |
$aqua: #00ffff; | |
$aquamarine: #7fffd4; | |
$azure: #f0ffff; | |
$beige: #f5f5dc; | |
$bisque: #ffe4c4; | |
$black: #000000; | |
$blanchedalmond: #ffebcd; | |
$blue: #0000ff; |
// Challenge 1 | |
function sayHello() { | |
setTimeout(() => console.log('Hello'), 1000); | |
} | |
// Uncomment the line below when ready | |
sayHello(); // should log "Hello" after 1000ms | |
<?php | |
$arr = [1, 2, 3, 4, 5]; | |
function rotLeft($a, $d) { | |
$res = []; | |
$count = count($a); | |
array_walk($a, function ($e, $i) use (&$a, $d, $count, &$res) { | |
$res[$i] = $a[($i+$d)%$count]; |
<?php | |
function reverseArray($a) { | |
$len = count($a); | |
$i = 0; | |
$res = []; | |
while ($i < $len) { | |
$j = abs($i - $len) - 1; | |
$res[] = $a[$j]; | |
$i++; |
// Write a function, makeChange, that returns an integer | |
// that represents the least number of coins that add up | |
// to an amount where the amount is always divisible by 5 | |
const availableCoins = { | |
5: 0, | |
10: 0, | |
25: 0 | |
} |
module.exports = { | |
isUnique (arr) { | |
let result = true; | |
let count = 0; | |
for (let i = 0; i < arr.length; i++) { | |
console.log(`OUTER LOOP ~~~~ i === ${i}`); | |
for (let j = 0; j < arr.length; j++) { | |
console.log(`INNER LOOP ~~~~ j ==== ${j}, and ${++count}`); | |
// apart from the current index where i and j are equal |