This file contains hidden or 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 python | |
# -*- coding: utf-8 -*- | |
from os import listdir | |
from os.path import isfile, join | |
import re | |
def bin2hex(dir_path, extensions): | |
bin_match = re.compile('0b[01]{8}') |
This file contains hidden or 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
char* str_cpy(char** dest, const char* source) | |
{ | |
unsigned int dest_size = *dest ? strlen(*dest) : 0; | |
unsigned int source_size = strlen(source) + 1; | |
/* check if source is a part of dest - no need to reallocate memory */ | |
if (((unsigned int)(source - *dest)) < dest_size) | |
return memmove(*dest, source, source_size); | |
/* reallocate since source is possibly larger than dest */ |
This file contains hidden or 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 python | |
# -*- coding: utf-8 -*- | |
__author__ = 'Vital Kolas' | |
__version__ = '0.0.1' | |
from pylab import * | |
from collections import Counter | |
if __name__ == '__main__': |
This file contains hidden or 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 <algorithm> | |
#include <chrono> | |
#include <iomanip> | |
#include <iostream> | |
#include <thread> | |
#include <vector> | |
using namespace std; | |
inline size_t calc(const size_t n, const size_t i, const size_t j) | |
{ |
This file contains hidden or 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 python | |
# -*- coding: utf-8 -*- | |
import hashlib | |
import os | |
def print_dir(path, size=False, md5=False): | |
""" | |
:type path: str |
This file contains hidden or 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> | |
namespace mystl | |
{ | |
#ifndef NULL | |
# define NULL ((void *)0) | |
#endif | |
template<typename T> | |
class List |
This file contains hidden or 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 python | |
# -*- coding: utf-8 -*- | |
__author__ = 'Vital Kolas' | |
__version__ = '0.1.1' | |
__date__ = '2014-05-16' | |
import os | |
import pexif |
This file contains hidden or 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
-55 0.99 475 490 505 3.02 | |
-50 0.98 500 515 530 2.92 | |
-40 0.96 552 567 582 2.74 | |
-30 0.93 609 624 638 2.55 | |
-20 0.91 669 684 698 2.35 | |
-10 0.88 733 747 761 2.14 | |
0 0.85 802 815 828 1.91 | |
10 0.83 874 886 898 1.67 | |
20 0.8 950 961 972 1.41 | |
25 0.79 990 1000 1010 1.27 |
This file contains hidden or 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 python | |
# -*- coding: utf-8 -*- | |
__author__ = 'Vital Kolas' | |
__date__ = '2014-08-06' | |
import json | |
import urllib.request | |
This file contains hidden or 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
Additional packages: | |
gtk2-engines-murrine:i386 | |
libatk-adaptor:i386 | |
libgail-common:i386 | |
libcanberra-gtk-module:i386 |
OlderNewer