Skip to content

Instantly share code, notes, and snippets.

View bilinin's full-sized avatar

Andrey Kargapolov bilinin

View GitHub Profile
#! /home/bilinin/env34/bin/python3.4
import pymorphy2
import cgi
#sdf
form = cgi.FieldStorage()
text1 = form.getfirst("TEXT_1", "не задано")
morph = pymorphy2.MorphAnalyzer()
import socket
alphabet = {"___||/_`||(_||\__,_|": "d",
"_||_|__|||_\\__|": "t",
"____|__)|_\\||_)||____/": "B",
"____/___|||||___\\____|": "C",
"____\\\\//\\\\/\\//\\VV/\\_/\\_/": "W",
"__//_|'_\\|(_)|\\___/": "6",
"_____|___|/////_/": "7",
http://pythonworld.ru/web/cgi-2.html
sudo -H pip install matplotlib
import matplotlib as mpl
import matplotlib.pyplot as plt
mpl.rcParams['font.family'] = 'fantasy'
mpl.rcParams['font.fantasy'] = 'Arial' # Для Windows
import random
import cgi
import binascii
import time
from datetime import datetime
from crccheck.crc import CrcModbus
from socket import *
import pickle
@bilinin
bilinin / 1) student
Last active February 28, 2017 17:58
student
#include <iostream>
#include <vector>
using namespace std;
struct date{
int day;
int month;
int year;
};
#include <iostream>
#include <vector>
using namespace std;
struct Mmarks{
int algebra;
int geometria;
int chemistry;
};
#include <iostream>
#include <vector>
using namespace std;
struct Ttime{
int hour;
int minute;
};
class Aeroflot{
@bilinin
bilinin / 4) Books
Last active February 28, 2017 14:44
#include <iostream>
#include <vector>
using namespace std;
class Book{
public:
// Конструктор
Book(string Autor, string Name, string Publishing, int Year, int Sheets){
set_autor(Autor);
set_name(Name);
@bilinin
bilinin / 5) Workers
Last active February 28, 2017 15:27
#include <iostream>
#include <vector>
using namespace std;
class Worker{
public:
// Конструктор
Worker(string LastName, string Initials, string Post, int Year, int Pay){
set_last_name(LastName);
set_initials(Initials);
#include <iostream>
#include <vector>
using namespace std;
struct Ttime{
int hour;
int minute;
};
class Train{