View keybase.md

Keybase proof

I hereby claim:

  • I am beautyfree on github.
  • I am devall (https://keybase.io/devall) on keybase.
  • I have a public key whose fingerprint is F845 2E9A AFE4 6AA6 65D7 603B 6960 EBED A201 FCE8

To claim this, I am signing this object:

View bdatetime.js
const fs = require('fs')
const path = require('path')
const { createCanvas, loadImage } = require('canvas')
const canvas = createCanvas(640, 1136)
const ctx = canvas.getContext('2d')
//ctx.fillStyle = 'rgba(235,133,190,1)'
ctx.fillStyle = 'rgba(242,228,231,1)'
ctx.fillRect(0, 0, 640, 1136)
View api.js
import { take, takeEvery, put, all, fork, call } from 'redux-saga/effects'
import { channel, delay, select } from 'redux-saga'
import { callApi, CALL_API } from 'redux/services'
const REQUESTS_COUNT = 3
const REQUESTS_DELAY = 1000
class RequestsBuffer {
constructor() { this.queue = [] }
isEmpty = () => !this.queue.length
View api.js
function promiseDebounce(fn, delay, count) {
var working = 0, queue = []
function work() {
if ((queue.length === 0) || (working === count)) return
working++
new Promise(function(resolve, reject){
setTimeout(function(){
working--
work()
View golang.go
func schedule(what func(), timeout time.Duration) {
ch := make(chan bool)
go func() {
what()
ch <- true
}()
select {
case <-time.After(timeout):
View keybase.md

Keybase proof

I hereby claim:

  • I am beautyfree on github.
  • I am devall (https://keybase.io/devall) on keybase.
  • I have a public key whose fingerprint is 6D6E 20F9 24BA 9D9F 497D 0001 C724 25E3 2900 BC2B

To claim this, I am signing this object:

View fb.js
<html>
<body>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
View extract.py
#!/usr/bin/env python3
import nltk
import re
import sys
import json
import string
from nltk.corpus import stopwords
import pymorphy2
View seostat.py
import re
import sys
from collections import Counter
from pymorphy2 import MorphAnalyzer
morph = MorphAnalyzer()
def words(text):
return re.findall('[а-яА-Яa-zA-Z-]+', text.lower())
View loop.js
angular.forEach(items, function(item, key) {
if(item.attachments){
angular.forEach(item.attachments, function(attachment, key) {
if(attachment.type == 'video') {
feed.getVideo(attachment.video.owner_id, attachment.video.owner_id+'_'+attachment.video.id).then(function(result){
videos[item.id].player = result.data.response.items[0].player;
});
}
}
}