Skip to content

Instantly share code, notes, and snippets.

View Relecto's full-sized avatar
🥔
potato

Emil Relecto Relecto

🥔
potato
View GitHub Profile
@Relecto
Relecto / README.md
Created February 7, 2024 11:29
make windows 10 shut up
@Relecto
Relecto / m.js
Last active June 3, 2020 11:00
minor and cofactor of 3x3 matrix
console.clear()
matrix = [
[1, -1, 3],
[-2, 5, 7],
[1, 1, 2]
]
for (let i = 0; i < 3; i++) {
for (let j = 0; j < 3; j++) {
@Relecto
Relecto / venv.md
Created May 7, 2020 16:38
Мини-руководство по venv

venv - Виртуальная среда в Python

venv - средство для создания так называемых "виртуальных сред" Python. В данном материале мы разберем что такое виртуальная среда, зачем она нужна, и как начать ей пользоваться.

Зачем нужна виртуальная среда

Представим, что вы в своем проекте захотели использовать какую-нибудь библиотеку, будь то Flask или numpy. Чтобы ее установить, вы открываете консоль и набираете:

pip install numpy
@Relecto
Relecto / webhook.js
Last active February 4, 2019 17:33
Automate deployment with this Node.js script and GitHub webhooks
const http = require('http')
const crypto = require('crypto')
const cp = require('child_process')
// Configuration variables
// secret you set in github settings
const secret = process.env.SECRET
// port to listen for requests