Skip to content

Instantly share code, notes, and snippets.


Alex Chuchunkov madfriend

  • Yandex, OpenCorpora
  • St. Petersburg, Russia
View GitHub Profile
View ex.js
let div = document.createElement('div'); = '100px'; = '100px'; = 'red'; = 'inline-block';
View gist:f6b55c63f8c073c830f1c25ce64db9a0
let div = document.createElement('div'); = '100px'; = '100px'; = 'red'; = 'inline-block';
View animate.js
let frameCounter = 0;
function countFrames () {
function* animate (from, to, numFrames) {
#! coding: utf-8
# sklearn = библиотека scikit-learn (
# Установить можно, например, так:
# сначала поставить дистрибутив Anaconda (
# а потом в терминале "conda install sklearn".
# Нам из sklearn нужно не так много
from sklearn.linear_model import LogisticRegression
# в sklearn есть удобная функция для создания
# отчетов по качеству классификации (Precision, Recall, F1)
from sklearn.metrics import classification_report
View test.tag
this is parent tag
<script type="riot/tag" src=""></script>
<my-tag>this should be replaced by my-tag contents</my-tag>
madfriend / snip.js
Created Sep 10, 2015
my jquery snippets
View snip.js
$.fn.mapGetter = function(prop) {
return $(this).map(function(i, e) {
return $(e).attr(prop);
$.fn.filterByAttr = function(attr, val) {
return $(this).filter(function(i, e) {
return $(e).attr(attr) == val;
madfriend / be.html
Last active Aug 29, 2015
be with m decoupled
View be.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<title>BE with M decoupled</title>
<div class="container">
<div class="new-label-form is-hidden">
<h2 class="new-label-form--title">
madfriend / gost-r-madfriend.csl
Created Mar 29, 2015
ГОСТ Р 7.0.1-2003 + 7.0.5-2008 для Zotero (мопед не мой, но что-то правил для себя)
View gost-r-madfriend.csl
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="" class="in-text" version="1.0">
<title>Russian GOST R 7.0.1-2003 + 7.0.5-2008 numeric (madfriend)</title>
<link href="" rel="self"/>
<link href="" rel="documentation"/>
<name>Roman Raspopov</name>
View grammar.g
start: program;
program: outer_block*;
outer_block: (outer_line NEWLINE)*
@outer_line: initialization
| assignment
assignment: name '='