I hereby claim:
- I am alex-shpilkin on github.
- I am alexshpilkin (https://keybase.io/alexshpilkin) on keybase.
- I have a public key ASAbZo8Qp8U-zCBRPlyofF38flV9f0EAAp_LQXFMwtwrgwo
To claim this, I am signing this object:
# --------------------------------------------------------------------------- | |
# Models - A flexible object system for Jim | |
# --------------------------------------------------------------------------- | |
# XXX Observation after writing all the code below: [ref]erences are _not_ | |
# used to store things. They are only used to invoke finalizers. | |
# --------------------------------------------------------------------------- | |
# Stubs | |
# --------------------------------------------------------------------------- |
#!/usr/bin/env python3 | |
# --------------------------------------------------------------------------- | |
# download.py - Download Turkish election data | |
# | |
# Written by Alexander Shpilkin <ashpilkin@gmail.com>, Feb 2012 | |
# | |
# To the extent possible under law, the author has dedicated all copyright | |
# and related and neighboring rights to this software to the public domain | |
# worldwide. This software is distributed without any warranty. | |
# |
include "/usr/share/X11/locale/en_US.UTF-8/Compose" | |
# Punctuation | |
# знаки препинания, необходимые в русском, которых нет в en_US.UTF-8/Compose | |
<Multi_key> <period> <minus> : "…" U2026 # HORIZONTAL ELLIPSIS, многоточие | |
<Multi_key> <period> <space> : "…" U2026 # HORIZONTAL ELLIPSIS, многоточие | |
<Multi_key> <?> <!> : "⁈" U2048 # QUESTION EXCLAMATION, ?! | |
<Multi_key> <period> <colon> : "…" # ELLIPSIS | |
# №: набирается в русской раскладке без ухищрений, |
#!/usr/bin/env python3 | |
import sys | |
import time | |
from bs4 import BeautifulSoup | |
import urllib3 | |
pool = urllib3.PoolManager(10) | |
# 2008 ROOT_URL = 'http://www.vybory.izbirkom.ru/region/region/izbirkom?action=show&root=1&tvd=100100022249920&vrn=100100022176412®ion=0&global=1&sub_region=0&prver=0&pronetvd=null&vibid=100100022249920&type=227' |
ENTRY(start) | |
OUTPUT_FORMAT(elf64-x86-64) | |
LD_FEATURE("SANE_EXPR") | |
SECTIONS | |
{ | |
. = 0x0100000; | |
_init = .; | |
.header : { |
#include <stdio.h> | |
#include <stdlib.h> | |
struct A { | |
struct Atable *vptr; | |
}; | |
struct Atable { | |
int (*answerp)(struct A *this); | |
}; |
I hereby claim:
To claim this, I am signing this object:
.TH BETA 1 2018 "Alexander Shpilkin" | |
.SH NAME | |
beta \- sample binomial distributions | |
.SH SYNOPSIS | |
\fBbeta \fIcount | |
.SH DESCRIPTION | |
Given a population size \fIN\fR and a sample \fIn\fR from a binomial | |
distribution with parameters (\fIN\fR, \fIp\fR), \fIbeta\fR computes | |
\fIcount\fR more samples from it, assuming a uniform Bayesian prior for the | |
unknown parameter \fIp\fR. |
oct | |
( register / memory ) | |
: reg/mem? ( m -- ? ) 70 and 0 = ; | |
: ?reg/mem ( m -- m ) | |
dup 70 and 0 <> ?abort" reg/mem? " ; | |
: ?memory ( m -- m ) | |
dup 70 and 0 <> over 300 and 300 = ?abort" memory? " ; |
#!/usr/bin/env python | |
import matplotlib.pyplot as plt | |
import random | |
import matplotlib.gridspec as gridspec | |
random.seed(20) | |
data1 = [random.random() for i in range(10)] | |
data2 = [random.random()*1000 for i in range(10)] |