Version: 1.9.7
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
# Округление (результат 18) | |
0 | 18.93 | |
# Генерация произвольной цифро-символьной строки | |
Math.random().toString(36).substr 2, 4 | |
# Так в вундерлисте генерится ключ | |
"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace /[xy]/g, (e) -> | |
t = 0 | 16 * Math.random() | |
n = "x" == e ? t : 8 | 3 & t |
- (NSString *)terminationForValue:(int)value withWords:(NSArray *)words { | |
if (words.count != 3) { | |
return nil; | |
} | |
int dd = (int)floor(value) % 100; | |
int d = (int)floor(value) % 10; | |
if(d == 0 || d > 4 || dd == 11 || dd == 12 || dd == 13 || dd == 14) return words[0]; | |
if(d != 1 && d < 5) return words[1]; | |
if(d == 1) return words[2]; |
::-webkit-input-placeholder { /* WebKit browsers */ | |
color: #999; | |
} | |
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */ | |
color: #999; | |
} | |
::-moz-placeholder { /* Mozilla Firefox 19+ */ | |
color: #999; | |
} | |
:-ms-input-placeholder { /* Internet Explorer 10+ */ |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set listchars=tab:→\ ,trail:·,nbsp:· |
var keyCode = { | |
ALT: 18, | |
BACKSPACE: 8, | |
CAPS_LOCK: 20, | |
COMMA: 188, | |
COMMAND: 91, | |
COMMAND_LEFT: 91, // COMMAND | |
COMMAND_RIGHT: 93, | |
CONTROL: 17, | |
DELETE: 46, |
function morphology(number, n0, n1, n2) { | |
number = number % 100; | |
if (number > 19) { | |
number = number % 10; | |
} | |
if (number >= 2 && number <= 4) return n2; | |
if (number == 1) return n1; | |
return n0; | |
} |
Перевод организационно-правовых форм юридических лиц | |
http://www.alba-translating.ru/index.php/ru/articles/glossary/legalentity.html | |
ОАО (Открытое акционерное общество) | |
OJSC (Open Joint-Stock Company) | |
АО (Акционерное общество) | |
JSC (Joint-Stock Company) | |
ООО (Общество с ограниченной ответственностью) |
sudo apt-get update | |
sudo apt-get install libfreetype6 libfreetype6-dev libfontconfig | |
# /etc/apt/sources.list should contain these: | |
# deb http://us.archive.ubuntu.com/ubuntu/ lucid multiverse | |
# deb-src http://us.archive.ubuntu.com/ubuntu/ lucid multiverse | |
# deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse | |
# deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates multiverse | |
sudo echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections |
request.get imageUrl, (error, response, body) -> | |
if not error and response.statusCode == 200 | |
data = "data:" + response.headers["content-type"] + ";base64," + new Buffer(body).toString('base64') |