Skip to content

Instantly share code, notes, and snippets.

Avatar

Dmitry Chaplinsky dchaplinsky

View GitHub Profile
View copart.json
{
"lotNumberStr": "27059380",
"ln": 27059380,
"mkn": "DODGE",
"lm": "CHALLENGER",
"lcy": 2018,
"fv": "2C3CDZGGXJH289026",
"la": 24998,
"rc": 27890,
"obc": "A",
View lambdify.diff
--- ../venv/lib/python3.6/site-packages/flask_lambda.py 2017-07-04 02:51:23.000000000 +0300
+++ lambdas/venues_finder/venues_finder/lambdify.py 2017-07-10 16:49:41.000000000 +0300
@@ -31,7 +31,7 @@
except ImportError:
from io import StringIO
-from werkzeug.wrappers import BaseRequest
+from werkzeug.wrappers import BaseRequest, Response
View lambdify.py
# -*- coding: utf-8 -*-
# Copyright 2016 Matt Martz
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
View glue.py
from rpy2 import robjects
from rpy2.robjects.packages import importr, STAP
jsonlite = importr("jsonlite")
with open('function_to_test_decl_read_incomr_process.R', 'r') as f:
s = f.read()
proc = STAP(s, "declaration_income_processing")
with open("declarations_bank/data/01/авраменко_максим_ігорович_01a15d65-8f55-4c59-86f3-c6a58bc2f37b.json", "r") as fp:
View dnipro.json
{
"name": "ПАТ «БАНК КРЕДИТ ДНІПРО»",
"owners": [
{
"share": "100",
"company": {
"name": "БРЕНКРОФТ ЕНТЕРПРАЙЗЕЗ ЛІМІТЕД",
"name_en": "BRANCROFT ENTERPRISES LIMITED",
"country": "Кіпр",
"owners": [
View dnipro.xml
<?xml version="1.0" encoding="UTF-8"?>
<company>
<name>ПАТ «БАНК КРЕДИТ ДНІПРО»</name>
<owners>
<owner>
<share>100</share>
<company>
<name>БРЕНКРОФТ ЕНТЕРПРАЙЗЕЗ ЛІМІТЕД</name>
<name_en>BRANCROFT ENTERPRISES LIMITED</name_en>
<country>Кіпр</country>
View convert_darchuk.py
# coding: utf-8
from __future__ import unicode_literals
from unicodecsv import reader, writer
class ConvertException(Exception):
pass
def guess(tagline, mapping):
@dchaplinsky
dchaplinsky / GoogleSpreadsheets.py
Last active Nov 26, 2015 — forked from cspickert/GoogleSpreadsheets.py
Export a Google Spreadsheet using python.
View GoogleSpreadsheets.py
#!/usr/bin/python
import re, urllib, urllib2
class Spreadsheet(object):
def __init__(self, key):
super(Spreadsheet, self).__init__()
self.key = key
class Client(object):
View text.xml
<root>
<id>A</id>
<author_surname></author_surname>
<author_name></author_name>
<title>На болото в Закарпатті повернулися вода та бобри</title>
<publ_in>Львівська газета</publ_in>
<url>http://www.gazeta.lviv.ua/ecology/37205</url>
<publ_part></publ_part>
<publ_place></publ_place>
<publisher></publisher>
View sentence.json
{"sentence": [["Гучне", [[["adj", "post"], ["s", "nmbr"], ["n", "gndr"], ["v_naz", "CAse"], ["compb", "forms"]], [["adj", "post"], ["s", "nmbr"], ["n", "gndr"], ["v_zna", "CAse"], ["compb", "forms"]]]], ["затримання", [[["noun", "post"], ["s", "nmbr"], ["n", "gndr"], ["v_naz", "CAse"], ["inanim", "ANim"]], [["noun", "post"], ["s", "nmbr"], ["n", "gndr"], ["v_rod", "CAse"], ["inanim", "ANim"]], [["noun", "post"], ["s", "nmbr"], ["n", "gndr"], ["v_zna", "CAse"], ["inanim", "ANim"]], [["noun", "post"], ["p", "nmbr"], ["v_naz", "CAse"], ["inanim", "ANim"]], [["noun", "post"], ["p", "nmbr"], ["v_zna", "CAse"], ["inanim", "ANim"]]]], ["підполковника", [[["noun", "post"], ["s", "nmbr"], ["m", "gndr"], ["v_rod", "CAse"], ["anim", "ANim"]], [["noun", "post"], ["s", "nmbr"], ["m", "gndr"], ["v_zna", "CAse"], ["anim", "ANim"]]]], ["Нацгвардії", []], ["за", [[["prep", "post"], ["rv_rod", "req_case"], ["rv_zna", "req_case"], ["rv_oru", "req_case"]]]], ["хабар", [[["noun", "post"], ["s", "nmbr"], ["m", "gndr"], ["v_naz", "
You can’t perform that action at this time.