Thanks to https://www.lullabot.com/articles/fixing-docker-and-vpn-ip-address-conflicts.
To configure default Docker address pool, create/edit the /etc/docker/daemon.json
file.
Remember: private networks have the 172.16.0.0 - 172.31.255.255 range.
const class1 = ['yasmin', 'isadora', 'benedita', 'brenda', 'luiza', 'fatima', 'caio', 'teresinha', 'hugo', 'zeca', 'catarina', 'emanuel', 'marcelo', 'claudio', 'marina', 'isabela', 'anthony', 'rebeca', 'filipe', 'laís', 'vinicius', 'helena', 'elisa', 'rodrigo', 'geraldo', 'yuri', 'marcio'] | |
const class2 = ['benedita', 'elisa', 'emanuel', 'rodrigo', 'filipe', 'marcio', 'teresinha', 'laís', 'vinicius', 'marina', 'catarina', 'luiza', 'marcelo', 'rebeca', 'hugo', 'geraldo', 'zeca', 'caio', 'anthony', 'yasmin', 'claudio'] | |
const class3 = ['isadora', 'isabela', 'laís', 'claudio', 'catarina', 'zeca', 'teresinha', 'emanuel', 'marcio', 'fatima', 'rodrigo', 'luiza', 'brenda', 'marina', 'marcelo', 'benedita', 'rebeca', 'filipe', 'helena', 'elisa', 'hugo', 'geraldo'] |
function bubbleSort (items) { | |
const length = items.length | |
for (let i = (length - 1); i >= 0; i--) { | |
for (let j = (length - i); j > 0; j--) { | |
// Compare the adjacent positions | |
if (items[j] < items[j - 1]) { | |
// Swap the numbers | |
const tmp = items[j] | |
items[j] = items[j - 1] | |
items[j - 1] = tmp |
function sum (a, b) { | |
return a + b | |
} | |
let result = sum(2, 2) | |
console.log(result) |
let cakeIsBaked = false | |
let totalMinutes = 0 | |
let minutesToBake = 30 | |
while (!cakeIsBaked) { | |
totalMinutes = totalMinutes + 10 // Wait 10 minutes | |
if (totalMinutes === minutesToBake) { | |
cakeIsBaked = true // Exit condition | |
} |
Thanks to https://www.lullabot.com/articles/fixing-docker-and-vpn-ip-address-conflicts.
To configure default Docker address pool, create/edit the /etc/docker/daemon.json
file.
Remember: private networks have the 172.16.0.0 - 172.31.255.255 range.
if (condition) { | |
// This will execute if condition is true | |
} else if (anotherCondition) { | |
// This will only be executed if condition is false | |
// and another condition is true | |
} |
{"paddingVertical":"24px","paddingHorizontal":"23px","backgroundImage":null,"backgroundImageSelection":null,"backgroundMode":"color","backgroundColor":"rgba(255,255,255,1)","dropShadow":false,"dropShadowOffsetY":"20px","dropShadowBlurRadius":"68px","theme":"vscode","windowTheme":"none","language":"javascript","fontFamily":"Hack","fontSize":"14px","lineHeight":"133%","windowControls":false,"widthAdjustment":true,"lineNumbers":false,"firstLineNumber":1,"exportSize":"2x","watermark":false,"squaredImage":false,"hiddenCharacters":false,"name":"","id":"bc79fdd0bea144cf1b85dc061afd9b86","gist_id":"bc79fdd0bea144cf1b85dc061afd9b86","loading":false,"isVisible":true} |
# -*- coding: utf-8 -*- | |
# Source: https://gist.github.com/wilspi/f68545494eafd57b7a8229ba3359c389 | |
# Script to run UDP Server on 127.0.0.1:8126 | |
# This mocks statsd server for testing | |
import socket | |
UDP_IP_ADDRESS = "127.0.0.1" | |
UDP_PORT_NO = 8126 |
Based on article: https://www.linuxuprising.com/2018/07/how-to-mount-onedrive-in-linux-using.html
~/Onedrive
folderrclone config
systemctl --user enable onedrive | |
systemctl --user start onedrive | |
# To see the logs run: | |
journalctl --user-unit onedrive -f | |
# Check its status | |
systemctl --user status onedrive |