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 / 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
#Загружается модуль случайных чисел.
@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_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_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 / 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 / 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 / vessobel.sh
Created March 10, 2012 21:13
Tool to get traffic statistic from Internet provider Vesso-Bel (BY) using curl [v.0.2.0]
#!/bin/bash
HLPARG=--help
TMPDIR=/tmp/vessobel
ERR='" либо eMail="" не найден'
HTM=vessobel.html
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\
Options:\n\t--help\t\tprint this help.\n\n\
Mail bug reports and suggestions to <dap.darkness at gmail dot com>."
@DAP-DarkneSS
DAP-DarkneSS / vessobel.sh
Created March 12, 2012 09:25
Tool to get traffic statistic from Internet provider Vesso-Bel (BY) using curl [v.0.2.1.1]
#!/bin/bash
HLPARG=--help
KDEARG=--kde
ERR='" либо eMail="" не найден'
OUT='Unknown error!'
if [ "`echo $@ | grep -o -- $HLPARG`" == $HLPARG ]
then
OUT="Tool to get traffic statistic from Internet provider Vesso-Bel (Belarus).\n\n\
@DAP-DarkneSS
DAP-DarkneSS / vessobel.sh
Created March 13, 2012 17:33
Tool to get traffic statistic from Internet provider Vesso-Bel (BY) using curl [v.0.2.1.2]
#!/bin/bash
HLPARG=--help
KDEARG=--kde
LOGERR='" либо eMail="" не найден'
IPERR="пулу"
OUT='Unknown error!'
if [ "`echo $@ | grep -o -- $HLPARG`" == $HLPARG ]
then
@DAP-DarkneSS
DAP-DarkneSS / vessobel.sh
Created March 24, 2012 09:53
Tool to get traffic statistic from Internet provider Vesso-Bel (BY) using curl [v.0.2.1.3]
#!/bin/zsh
HLPARG=--help
KDEARG=--kde
LOGERR='" либо eMail="" не найден'
IPERR="пулу"
OUT='Unknown error!'
if [ -n "`echo $@ | grep -o -- $HLPARG`" ]
then