- Find mongodb data folder
grep -i dbPath /etc/mongod.conf
- Let's say that data folder is
/data/db
. Create the necessary data directories for each member by issuing a command similar to the following:
grep -i dbPath /etc/mongod.conf
/data/db
. Create the necessary data directories for each member by issuing a command similar to the following:abc = 'абвгґдеєжзиіїйклмнопрстуфхцчшщьюя' | |
msg = input('Введіть повідомлення: ') | |
key = int(input('Введіть зміщення: ')) | |
msg = msg.lower() | |
count = len(abc) | |
for letter in msg: | |
idx = abc.index(letter) |
№ | Результат | Введене значення | Отримане значення |
---|---|---|---|
1 | Усі літери написано двічі | школа | шшккооллаа |
2 | Змінено порядок літер у парах | книга | нкгиа |
3 | Після кожної літери додано останню літеру слова | книга | нкгиа |
4 | Кожну літеру замінено на відповідний код у кодовій таблиці | зошит | 10791086109610801090 |
5 | [Кожна літера замінена на наступну в кодовій таблиці](#5-кожна-літера-замінена-на-наступну-в-кодовій-таблиц |
import random | |
choises = ['Камінь', 'Ножниці', 'Папір'] | |
print('0 - ', choises[0]) | |
print('1 - ', choises[1]) | |
print('2 - ', choises[2]) | |
user = int(input('Виберіть цифру: ')) |
/** | |
* Filter out element from excludeFrom array if it equals | |
* to some of the elements in valuesToExclude array | |
* Inspired by lodash differenceWith | |
* | |
* @param {Array} excludeFrom array to exclude from | |
* @param {Array} valuesToExclude values which we need to exclude from first array | |
* @param {Function} comparator returns true if two elements are equal | |
* @returns {Array} Returns the new array. | |
* @example |
import math | |
from turtle import * | |
shape('circle') | |
speed(0) | |
c = 15 | |
for n in range(500): | |
a = n * 137.507764050 |
const canvas = document.getElementById('canvas') | |
const ctx = canvas.getContext('2d') | |
canvas.width = window.innerWidth | |
canvas.height = window.innerHeight | |
const { width, height } = canvas | |
const startX = width / 2 | |
const startY = height - 100 |
// https://youtu.be/khblXafu7iA?si=jo4m_TubKhM_ct7u | |
float sdSphere(vec3 p, float r) { | |
// signed distance to a sphere of radius 1 located at the origin | |
return length(p) - r; | |
} | |
float sdBox(vec3 p, vec3 a) { | |
vec3 q = abs(p) - a; | |