This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
from mpl_toolkits.mplot3d import Axes3D | |
data = pd.read_csv('weights_heights.csv', index_col='Index') | |
# height = data.Height.values | |
# weight = data.Weight.values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
''' | |
sudo apt-get install libjpeg-dev zlib1g-dev | |
pip install pillow-simd | |
''' | |
from PIL import Image | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Summary | |
Operating System | |
Майкрософт Windows 10 Домашняя для одного языка 64-bit | |
CPU | |
Intel Core i5 7400 @ 3.00GHz 36 °C | |
Kaby Lake 14nm Technology | |
RAM | |
16,0ГБ Dual-Channel Unknown @ 1200MHz (16-16-16-39) | |
Motherboard | |
Gigabyte Technology Co. Ltd. Z270X-UD3-CF (U3E1) 24 °C |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------ | |
System Information | |
------------------ | |
Time of this report: 12/13/2018, 18:21:26 | |
Machine name: DESKTOP-CNQUUON | |
Machine Id: {1DB66E4A-F871-4E16-B7F2-5D1101956FBD} | |
Operating System: Windows 10 Домашняя для одного языка 64-bit (10.0, Build 17763) (17763.rs5_release.180914-1434) | |
Language: Russian (Regional Setting: Russian) | |
System Manufacturer: Gigabyte Technology Co., Ltd. | |
System Model: Z270X-UD3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# setup | |
# sudo apt install libmagickwand-dev ffmpeg | |
# pip3 install Wand progressbar | |
# ffmpeg -framerate 30 -i out/%05d.jpg -c:v libx264 -r 30 jpeg.mp4 | |
from random import randrange | |
from wand.image import Image | |
import progressbar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Я знаю отличную шутку про UDP, но не факт, что она до вас дойдет. | |
2. Я знаю отличную шутку про TCP, но если она до вас не дойдет, то я повторю. | |
3. А кто знает отличную шутку про ARP? | |
4. А вы слышали шутку про ICMP? | |
5. Вам еще кто–то рассказывал шутку про STP? | |
6. Я подожду Антона и расскажу классную шутку про QoS. | |
7. Про MTU тоже есть кла | |
8. <шутка><смешная/><про>XML | |
9. А про FSMO роли шутить могут не более пяти человек. | |
10. Подождите все, я расскажу шутку о сети типа "шина". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import sys | |
import pytesseract | |
import pyautogui | |
import numpy as np | |
import re | |
import imutils | |
if __name__ == '__main__': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import re | |
pattern = re.compile(r"[а-яА-Я]+") | |
list_file = os.listdir('.') | |
rus_files = [] | |
for directory in os.walk('.'): | |
for item in directory[2]: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const modern = arr => a.map(i => () => i); | |
function oldStyle(arr) { | |
var res = []; | |
var func = function(i) { | |
return i; | |
}; | |
for (var i = 0; i <= arr.length; ++i) { | |
res.push(func.bind(null, arr[i])); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const data = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]; | |
let variants = []; | |
const f = function (res, i) { | |
if (i > data.length - 1){ | |
variants.push(res); | |
return; | |
} | |
let res1 = res.slice(); | |
f(res1, i+1); | |
let res2 = res.slice() |
NewerOlder