sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
Lesson 1 - Iterations | |
- BinaryGap - https://codility.com/demo/results/trainingU2FQPQ-7Y4/ | |
Lesson 2 - Arrays | |
- OddOccurrencesInArray - https://codility.com/demo/results/trainingFN5RVT-XQ4/ | |
- CyclicRotation - https://codility.com/demo/results/trainingSH2W5R-RP5/ | |
Lesson 3 - Time Complexity | |
- FrogJmp - https://codility.com/demo/results/training6KKWUD-BXJ/ | |
- PermMissingElem - https://codility.com/demo/results/training58W4YJ-VHA/ |
import axios from "axios"; | |
export default async function () { | |
const { data: { id } } = await axios.get("//localhost:3000/id"); | |
const { data: { group } } = await axios.get("//localhost:3000/group"); | |
const { data: { name } } = await axios.get(`//localhost:3000/${group}/${id}`); | |
console.log(name); // Michał | |
} |
//@version=3 | |
study(title="Wolf TrendRider v2 ", shorttitle="TrendRider", overlay=true) | |
// SLOW MA | |
len1 = input(50, minval=1, title="Slow EMA") | |
src1 = input(close, title="Source") | |
ma1 = sma(src1, len1) | |
maColor1 = ma1 > ma1[1] and close > ma1 ? green : ma1 < ma1[1] and close < ma1 ? red : yellow |
Since Chrome apps are now being deprecated. Download postman from https://dl.pstmn.io/download/latest/linux
Although I highly recommend using a snap
sudo snap install postman
tar -xzf Postman-linux-x64-5.3.2.tar.gz
mkdir -p ~/.local/share/fonts | |
for type in Bold Light Medium Regular Retina; do wget -O ~/.local/share/fonts/FiraCode-$type.ttf "https://github.com/tonsky/FiraCode/blob/master/distr/ttf/FiraCode-$type.ttf?raw=true"; done | |
fc-cache -f |
# Determine wireless device model (manufacturer 14e4 for Broadcom): | |
lspci -vvnn | grep 14e4 | |
# Install Broadcom STA driver for BCM43227: | |
sudo apt-get update | |
sudo apt-get install --reinstall linux-headers-generic build-essential dkms bcmwl-kernel-source | |
sudo modprobe -r b43 ssb wl brcmfmac brcmsmac bcma | |
sudo modprobe wl | |
# Connect (press Fn+F3 to enable wifi if necessary first): |
const usCityOptions = cities | |
// Object sorting by key | |
.sort((a, b) => { | |
if(a.state < b.state){ | |
return -1; | |
// a should come after b in the sorted order | |
}else if(a.state > b.state){ | |
return 1; | |
// and and b are the same | |
}else{ |