Skip to content

Instantly share code, notes, and snippets.

packagesToTest =
Python:
name: 'language-python'
file: 'test.py'
describe 'Jedi autocompletions', ->
[editor, provider] = []
getCompletions = ->
cursor = editor.getLastCursor()
@sadovnychyi
sadovnychyi / acora
Last active September 20, 2017 21:22
Spacy vs Acora for multi keyword search benchmarking
python3 spacy_vs_acora.py acora
Total 10036 matches in 0.4687957763671875s
Filename: spacy_vs_acora.py
Line # Mem usage Increment Line Contents
================================================
14 80.6 MiB 0.0 MiB @memory_profiler.profile()
15 def main(test):
16 88.6 MiB 8.0 MiB random_word = lambda: ''.join(random.choices(string.ascii_letters, k=random.randint(2, 16)))
17 87.7 MiB -0.9 MiB random_phrase = lambda: ' '.join(random_word() for i in range(random.randint(2, 5)))

Keybase proof

I hereby claim:

  • I am sadovnychyi on github.
  • I am sadovnychyi (https://keybase.io/sadovnychyi) on keybase.
  • I have a public key whose fingerprint is ECE6 C141 3295 C215 1239 ACB3 42AB 8AF3 B3A8 1A7D

To claim this, I am signing this object:

[][(![]+[])[!+[]+!![]+!![]]+([]+{})[+!![]]+(!![]+[])[+!![]]+(!![]+[])[+[]]][([]+{})[!+[]+!![]+!![]+!![]+!![]]+([]+{})[+!![]]+([][[]]+[])[+!![]]+(![]+[])[!+[]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([]+{})[!+[]+!![]+!![]+!![]+!![]]+(!![]+[])[+[]]+([]+{})[+!![]]+(!![]+[])[+!![]]](([]+{})[!+[]+!![]+!![]+!![]+!![]]+([]+{})[+!![]]+([][[]]+[])[+!![]]+(![]+[])[!+[]+!![]+!![]]+([]+{})[+!![]]+(![]+[])[!+[]+!![]]+([][[]]+[])[!+[]+!![]+!![]]+[][(![]+[])[!+[]+!![]+!![]]+([]+{})[+!![]]+(!![]+[])[+!![]]+(!![]+[])[+[]]][([]+{})[!+[]+!![]+!![]+!![]+!![]]+([]+{})[+!![]]+([][[]]+[])[+!![]]+(![]+[])[!+[]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([]+{})[!+[]+!![]+!![]+!![]+!![]]+(!![]+[])[+[]]+([]+{})[+!![]]+(!![]+[])[+!![]]]((!![]+[])[+!![]]+([][[]]+[])[!+[]+!![]+!![]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+!![]]+([]+{})[!+[]+!![]+!![]+!![]+!![]+!![]+!![]]+([][[]]+[])[+[]]+([][[]]+[])[+!![]]+([][[]]+[])[!+[]+!![]+!![]]+(![]+[])[!+[]+!![]+!![]]+([]+{})[!+[]+!![]+!![]
@sadovnychyi
sadovnychyi / gist:773841d0ac00cb3b8ae4
Created April 21, 2015 06:13
AIDA: `mvn package` success: ran two times
This file has been truncated, but you can view the full file.
Client version: 1.5.0
Client API version: 1.17
Go version (client): go1.4.1
Git commit (client): a8a31ef
OS/Arch (client): linux/amd64
Server version: 1.5.0
Server API version: 1.17
Go version (server): go1.4.1
Git commit (server): a8a31ef
Step 0 : FROM debian:wheezy
@sadovnychyi
sadovnychyi / gist:fc83b1ff53b7cb80e3c9
Created April 21, 2015 06:12
AIDA: `mvn package -X` fails
This file has been truncated, but you can view the full file.
Client version: 1.5.0
Client API version: 1.17
Go version (client): go1.4.1
Git commit (client): a8a31ef
OS/Arch (client): linux/amd64
Server version: 1.5.0
Server API version: 1.17
Go version (server): go1.4.1
Git commit (server): a8a31ef
Step 0 : FROM debian:wheezy
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
@sadovnychyi
sadovnychyi / run.py
Last active August 29, 2015 14:00
Google Developers docs image downloader.
import urllib2
from bs4 import BeautifulSoup
import urllib
import os
import sys
import Queue
import threading
import logging
import time
@sadovnychyi
sadovnychyi / gist:3788386
Created September 26, 2012 14:31
Autodeploy go GAE via EXO-IDE
# -*- coding: utf-8 -*-
import webapp2
import base64
from google.appengine.api import urlfetch
class Deploy(webapp2.RequestHandler):
def post(self):
domain = self.request.get('domain') or 'appengine'
@sadovnychyi
sadovnychyi / forms.py
Created April 7, 2012 14:20 — forked from kylefinley/forms.py
webapp2: Password reset
import models
from wtforms import Form
from wtforms import fields
from wtforms import validators
class PasswordRestForm(Form):
email = fields.TextField('email')
class PasswordChangeForm(Form):
current = fields.PasswordField('Current Password')