Skip to content

Instantly share code, notes, and snippets.

Alexander Sapozhnikov shoorick

View GitHub Profile
@shoorick
shoorick / bike-area.dot
Last active Jul 4, 2017
Where I was with bicycle.
View bike-area.dot
graph G {
node [ shape=box, fontsize=10, fontname="Droid Sans", style=filled, height=0.2 ]
edge [ color=gray50, penwidth=3, fontname="Droid Sans" ]
graph [ overlap=false ]
subgraph main {
node [ fillcolor=pink ]
"Б. Акуля" [ shape=folder ]
"Еланчик" [ shape=folder ]
@shoorick
shoorick / bar-between-natural-and-flats.ly
Created Mar 4, 2013
Sample where new key signs (naturals and sharps/flats) divided by bar: ♮ | ♯
View bar-between-natural-and-flats.ly
\version "2.14.2"
\relative c' {
\key e \major
\cadenzaOn
e4 gis b a
s
\key a \minor
s256
\cadenzaOff
\bar "|"
@shoorick
shoorick / extract-mapbox-tiles.pl
Last active Sep 11, 2016
Extract tiles from *.mbtiles file made by TileMill
View extract-mapbox-tiles.pl
#!/usr/bin/perl
# VERSION: 1.0
# CREATED: 10.02.2013 23:41:17
use strict;
use warnings;
=head1 USAGE
View panoramio-rss.pl
#!/usr/bin/env perl
=head1 USAGE
./panoramio-rss.pl
=head1 DESCRIPTION
Get RSS feed of my photos from panoramio.com and make HTML list of images
@shoorick
shoorick / get-width-stat.sh
Created Sep 21, 2012
Get statistics for screen resolution and sum it by width
View get-width-stat.sh
wget 'https://www.openstat.ru/rest/v0.3/ct:openstat:trends/display/columns/20120820-20120920?column=0%0Dvisitors_sum_average&column=0%0Dvisitors_sum_average_verticalpercent&column=0%0Dsessions_sum&column=0%0Dpageviews_sum&primary_column=0&view_id=1810&format=tsv' -O - \
| perl -nlaF'\t' -MList::Util=max \
-e '$F[0]=~s/x.*//||next;$sum{$F[0]}+=$F[4];END{for$k(0..max(keys%sum)){print"$k\t$sum{$k}"}}'
@shoorick
shoorick / word-color.pl
Created Apr 23, 2012
Print color stripes with HTML colouring
View word-color.pl
#!/usr/bin/perl
=head1 USAGE
./word-color.pl
=head1 DESCRIPTION
Print color stripes. See L<http://habrahabr.ru/post/142570/>
@shoorick
shoorick / sphinxdrupal-ru.po
Created Apr 6, 2012
Russian translation for Sphinxdrupal
View sphinxdrupal-ru.po
# Russian translation for sphinxdrupal https://bitbucket.org/ivinco/drupal-7-sphinx-search-module/
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: 0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-04-05 18:45+0600\n"
"PO-Revision-Date: 2012-04-06 13:40+0600\n"
"Last-Translator: Alexander Sapozhnikov <shoorick@cpan.org>\n"
@shoorick
shoorick / accordion-horizontal-css3-transition.html
Created Jan 12, 2012
CSS3 transition sample - Horizontal Accordion
View accordion-horizontal-css3-transition.html
<!DOCTYPE html>
<html>
<head>
<title>CSS3 Transition - Accordion sample</title>
<!-- 2012-01-12 - Alexander Sapozhnikov - http://shoorick.ru/ -->
<style>
body {
font-family: "Liberation Sans",sans-serif;
color: #000;
background-color: #fff;
@shoorick
shoorick / accordion-vertical-css3-transition.html
Created Jan 10, 2012
CSS3 transition sample - Vertical Accordion
View accordion-vertical-css3-transition.html
<!DOCTYPE html>
<html>
<head>
<title>CSS3 Transition - Accordion sample</title>
<!-- 2012-01-10 - Alexander Sapozhnikov - http://shoorick.ru/ -->
<style>
body {
font-family: "Liberation Sans",sans-serif;
color: #000;
background-color: #fff;
@shoorick
shoorick / link-extractor.pl
Created Oct 7, 2011
Extract http-links from HTML and plain text
View link-extractor.pl
You can’t perform that action at this time.