Skip to content

Instantly share code, notes, and snippets.

View DAP-DarkneSS's full-sized avatar
:octocat:

Dmitriy A. Perlow DAP-DarkneSS

:octocat:
View GitHub Profile
@DAP-DarkneSS
DAP-DarkneSS / vessobel.sh
Created March 10, 2012 17:11
Tool to get traffic statistic from Internet provider Vesso-Bel (BY) using wget [v.0.1]
#!/bin/bash
HLPARG=--help
# VRBARG=--verbose
TMPDIR=/tmp/vessobel
ERR='" либо eMail="" не найден'
HTM=vessobel.html
# VRB=1
HLPMSG="Tool to get traffic statistic from Internet provider Vesso-Bel (Belarus).\n\n\
Usage: vessobel.sh [LOGIN]\n\nOutput: [Used in MB] / [Free in MB] | [Total in GB]\n\n\
@DAP-DarkneSS
DAP-DarkneSS / mirrortext.py
Created August 9, 2011 18:07
This program reflects the input text as in a mirror.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#Указывается язык и кодировка.
#This code is released under
#GNU LESSER GENERAL PUBLIC LICENSE
#http://www.gnu.org/copyleft/lesser.html
print 'Программа создания зеркального отображения текста'
print '-----------'
@DAP-DarkneSS
DAP-DarkneSS / generator_mean2.py
Created July 31, 2011 17:42
2. Generator of random numbers within the specified interval with the specified mean value.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#Указывается язык и кодировка.
#This code is released under
#GNU LESSER GENERAL PUBLIC LICENSE
#http://www.gnu.org/copyleft/lesser.html
from random import triangular
#Импорт модулей генерации случайных чисел с симметричным распределением.
@DAP-DarkneSS
DAP-DarkneSS / generator_mean1.py
Created July 31, 2011 14:30
Generator of random numbers within the specified interval with the specified mean value.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#Указывается язык и кодировка.
#This code is released under
#GNU LESSER GENERAL PUBLIC LICENSE
#http://www.gnu.org/copyleft/lesser.html
from random import triangular
#Импорт модулей генерации случайных чисел с
@DAP-DarkneSS
DAP-DarkneSS / generator_rsd.py
Created July 26, 2011 18:11
Generator of random numbers within the specified interval with the maximum permissible relative standard deviation.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#Указывается язык и кодировка.
#This code is released under
#GNU LESSER GENERAL PUBLIC LICENSE
#http://www.gnu.org/copyleft/lesser.html
from random import uniform, triangular
from math import sqrt
@DAP-DarkneSS
DAP-DarkneSS / generator.py
Created July 26, 2011 18:01
Simple generator of random numbers within the specified interval.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#Указывается язык и кодировка.
#This code is released under
#GNU LESSER GENERAL PUBLIC LICENSE
#http://www.gnu.org/copyleft/lesser.html
from random import uniform
#Загружается модуль случайных чисел.