Skip to content

Instantly share code, notes, and snippets.

View sutyrin's full-sized avatar

Pavel Sutyrin sutyrin

View GitHub Profile
### Keybase proof
I hereby claim:
* I am pavel64-sutyrin on github.
* I am pavel64 (https://keybase.io/pavel64) on keybase.
* I have a public key ASB9zRBnDhLQHEBbi_H-p8Vc7BLx94ictklMtVEdHzzLawo
To claim this, I am signing this object:
  1. На имя физического лица:

Онлайн https://rocketbank.ru/pavel-sutyrin-bitter-dew

На карту MasterCard 5321300392701277

  1. На имя юридического лица:

Получатель: ИНДИВИДУАЛЬНЫЙ ПРЕДПРИНИМАТЕЛЬ СУТЫРИН ПАВЕЛ ГЕОРГИЕВИЧ

@sutyrin
sutyrin / BulkInsertManager.py
Created June 30, 2017 09:18 — forked from datamafia/BulkInsertManager.py
Django Bulk Insert Manager for ON DUPLICATE IGNORE and ON DUPLICATE KEY in MySQL
#!/usr/bin/env python
# marc-w.com
# Built and tested on Django 1.5
class BulkInsertManager(models.Manager):
def _bulk_insert_ignore(self, create_fields, values, print_sql=False):
'''
Bulk insert/ignore
@param create_fields : list, required, fields for the insert field declaration
I am the Miaou user with id 2131 and name "spacediver" on https://dystroy.org/miaou
class Graph:
def __init__(self):
self.nodes = set()
self.edges = defaultdict(list)
self.distances = {}
def add_node(self, value):
self.nodes.add(value)
def add_edge(self, from_node, to_node, distance):
@sutyrin
sutyrin / gist:0e9ad75773820f6daf3e
Created September 30, 2014 16:24
Pavel Sutyrin public ssh-rsa key
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA08McELeRR8PSbKx9ejHjLBChW3pTWKc+OknuTUkYXc8N605p1UTovxZaF3xwpQV3a76L7IZmSG3+tEHSTEchxcqGiZF0vCEinXPVI3+U+5eOK3CDFtPed8A9GQg+U7dLwNXtY1Y0lgpQy+VMdqNrx1YTBM4SOgpnok60E+JdaVYzc+krkqVBga4Pn22tYXTD9e4Yj/O36ATouEOLiX8iTYEwY/Eg3kLFT7uwtv12QO6GRLNFkgyQEQBQud8xfldNcdnyuDRuTHzuRaXtmhwguHmdg710DW8c+2tCZrAa2AHlrm6lkYtRwpp6qnLFZ3Vsi5WYO6DBf6bYD/kBHirbAw== pavel@pavelx