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
КИЇВСЬКИЙ НАЦІОНАЛЬНИЙ УНІВЕРСИТЕТ | |
ІМЕНІ ТАРАСА ШЕВЧЕНКА | |
ПРОЕКТ | |
ПОЛОЖЕННЯ ПРО ВИБОРИ ОРГАНІВ СТУДЕНТСЬКОГО | |
САМОВРЯДУВАННЯ, ПРЕДСТАВНИКІВ СТУДЕНТІВ | |
(КУРСАНТІВ) ДО КОНФЕРЕНЦІЇ ТРУДОВОГО КОЛЕКТИВУ, | |
ВЧЕНОЇ РАДИ КИЇВСЬКОГО НАЦІОНАЛЬНОГО | |
УНІВЕРСИТЕТУ |
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 hotshot, hotshot.stats | |
import sys | |
def main(): | |
module = __import__(sys.argv[1].replace('.py', '')) | |
prof = hotshot.Profile('example.prof') | |
prof.runcall(module.main) | |
prof.close() | |
stats = hotshot.stats.load('example.prof') |
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
#include <iostream> | |
using namespace std; | |
int main(){ | |
int* q=new int[5]; | |
int i=0; | |
i[q]=2; | |
cout<<q[0]; | |
return 0; | |
} |
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
#include <QCoreApplication> | |
#include <fstream> | |
#include <iostream> | |
#include <sstream> | |
#include <string> | |
#include <map> | |
#include <iterator> | |
#include <algorithm> | |
using namespace std; |
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
# -*- coding: utf-8 -*- | |
from PIL import Image | |
im = Image.open(u'07052015.png').convert('RGB') | |
pix = im.load() | |
colors_to_save = [(104, 104, 104), (114, 114, 114)] | |
w, b = (0xffffff, 0xffffff, 0xffffff), (0, 0, 0) | |
for x in range(im.size[0]): | |
for y in range(im.size[1]): | |
pix[x,y] = b if pix[x,y] in colors_to_save else w | |
im.save(u'result.png') |
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 glob | |
from docx import Document as Document | |
from docx.oxml.text.paragraph import CT_P | |
from docx.oxml.section import CT_SectPr | |
temp2=lambda x:x.style if x.__class__==CT_P else None | |
temp3=lambda x:x if x!='None' and x else '' | |
def proceed_doc(d): | |
global res | |
t = [temp2(x) for x in d] | |
curr_num, curr_ps = None, [] |