Skip to content

Instantly share code, notes, and snippets.

@sirex
sirex / partijų sudėtys.md
Last active September 20, 2016 20:37
Lietuvos politinių partijų sudėtys
Lietuvos socialdemokratų partija
    6563 Lietuvos socialdemokratų partija
     674 Lietuvos demokratinė darbo partija
     195 Naujoji sąjunga (socialliberalai)
     113 Lietuvos valstiečių ir žaliųjų sąjunga
     107 A.Brazausko ir A.Paulausko koalicija "Už darbą Lietuvai"
     107 Lietuvos centro sąjunga
     106 A.Brazausko socialdemokratinė koalicija
      85 Liberalų ir centro sąjunga
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sirex
sirex / visi_prasymai_klaidos.ipynb
Created June 14, 2016 19:10
Klaidos darželių duomenyse
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import io
import csv
import gzip
import urllib.parse
import urllib.request
import scoop
import scoop.futures
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sirex
sirex / readme.rst
Last active May 13, 2016 14:38
Data synchronisation benchmarks

Three bulk data update methods where used:

  1. Check if row exist then update or insert

    This method executes select query for each row to check if row exist or not. If row exist then an update statement will be executed if row does not exist then this row will be buffered and bulk inserted later.

    • This method does not delete rows if they does not exist in provided new set of rows.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# http://editorconfig.org/
root = true
[*.{html,css}]
charset = utf-8
indent_style = space
end_of_line = lf
insert_final_newline = true
@sirex
sirex / rinkimai.ipynb
Last active May 20, 2016 10:24
VRK rinkimų duomenys
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.