I hereby claim:
- I am sergeyromanov on github.
- I am sromanov (https://keybase.io/sromanov) on keybase.
- I have a public key ASD9agQ-PhjlrIHSnvvyc_Z2u1c6BrCrPzNvlup6bm6rDQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // jsbootcamp, task1 | |
| // by Sergey Romanov | |
| // simple test function | |
| function ok(got, expect, desc) { | |
| if (got === expect) { | |
| console.log('ok --', desc); | |
| } else { | |
| console.log("fail\n\tgot:", got, "expected:", expect, '--', desc); | |
| } |
| // jsbootcamp, task0 | |
| // by Sergey Romanov | |
| var text = " \n\ | |
| The sky above the port was the color of television, tuned \n\ | |
| to a dead channel. \n\ | |
| \n\ | |
| `It's not like I'm using,' Case heard someone say, as he \n\ | |
| shouldered his way through the crowd around the door of the \n\ | |
| Chat. `It's like my body's developed this massive drug defi- \n\ | |
| ciency.' It was a Sprawl voice and a Sprawl joke. The Chatsubo \n\ |
| It seems that potion assumes that Unicode code points are 4 hex max: | |
| sromanov@killdozer ~/mydev/potion $ cat example/unicode.pn | |
| "I'm snowman - \u2603\n" print | |
| "I'm bactrian - \u1f42b\n" print | |
| sromanov@killdozer ~/mydev/potion $ bin/potion example/unicode.pn | |
| I'm snowman - ☃ | |
| I'm bactrian - ὂb |
| # -*- coding: utf-8 -*- | |
| """ | |
| Builds epub book out of Paul Graham's essays: http://paulgraham.com/articles.html | |
| Author: Ola Sitarska <[email protected]> | |
| This script requires python-epub-library: http://code.google.com/p/python-epub-builder/ | |
| """ | |
| import re, ez_epub, urllib2, genshi |
| #!/usr/bin/env perl | |
| use 5.014; | |
| use Encode qw(decode); | |
| use Mojo::UserAgent; | |
| use List::MoreUtils qw(pairwise); | |
| use YAML qw(DumpFile); | |
| my $SOURCE_URL = 'http://www.spbindex.ru/listindex.html'; | |
| my $OUT_FILE = 'sp_indices.yml'; |
| "gr" property | |
| -------------------------------------------------------- | |
| | left -1 | lemma | right 1 | right 2 | | |
| -------------------------------------------------------- | |
| | (20)PR,norm= | веник | (54)CONJ,norm= | (26)PR,norm= | | |
| -------------------------------------------------------- | |
| "lex" property | |
| --------------------------------------------- | |
| | left -1 | lemma | right 1 | right 2 | |
| #!/usr/bin/env perl | |
| use strict; | |
| use Imager::QRCode qw(plot_qrcode); | |
| my %params = ( | |
| size => 15, | |
| margin => 2, | |
| version => 1, | |
| level => 'M', | |
| casesensitive => 1, |