Skip to content

Instantly share code, notes, and snippets.

View Kedrigern's full-sized avatar

Ondřej Profant Kedrigern

View GitHub Profile
@kokes
kokes / Instituce přijímající vklady kromě centrální banky pod zahraniční kontrolou.csv
Created August 9, 2016 11:38
886 současných i bývalých poslanců PSP a jejich funkce v podnicích, které uzavřely smlouvy se státem. Obsahuje neaktuální angažovanosti, sledujte proto 'od' a 'do' sloupce. (Zdroje: Registr smluv, Obchodní rejstřík, psp.cz)
pid od do kan jman funkce tp j p tz dn_x clen_zac clen_kon funk_zac funk_kon ico subjekt npf esa
45244782 1999-09-17 2001-01-03 4 doz_rada člen dozorčí rady Mgr. Zdeněk Zajíček 1967-05-10 45244782 Česká spořitelna, a.s. Akciová společnost Instituce přijímající vklady kromě centrální banky pod zahraniční kontrolou
45317054 1998-10-14 1999-05-20 4 doz_rada člen PhDr. Jan Stráský 1940-12-24 45317054 Komerční banka, a.s. Akciová společnost Instituce přijímající vklady kromě centrální banky pod zahraniční kontrolou
45317054 1998-10-14 1999-05-20 4 doz_rada člen Michal Frankl 1963-12-13 45317054 Komerční banka, a.s. Akciová společnost Instituce přijímající vklady kromě centrální banky pod zahraniční kontrolou
45244782 1996-08-06 1998-09-15 4 doz_rada člen dozorčí rady Ing. Martin Kocourek 1966-12-23 45244782 Česká spořitelna, a.s. Akciová společnost Instituce přijímající vklady kromě centrální banky pod zahraniční kontrolou
@fabacab
fabacab / xl2sqlite.py
Created November 5, 2015 08:08
Convert a set of similarly-structured .xlsx files into a SQLite DB (using openpyxl and sqlite3).
#!/usr/bin/env python
#
# Convert a set of similarly-structured .xlsx files into a SQLite DB.
#
# For example, say you have hundreds of Excel files in a directory
# called "big-analysis-project" and that each of these Excel files
# has a worksheet containing the same set of columns. Rather than
# having hundreds of separate Excel files, it would be handy to have
# all their data inside one relational database management system.
#
@techouse
techouse / sqlite3mysql.py
Last active May 29, 2023 13:37
A simple Python 3 script to transfer the data from SQLite 3 to MySQL. Requires MySQL Connector/Python 2.0.4 or higher.
#!/usr/bin/env python3
import logging
import sqlite3
import sys
import re
from math import ceil
from os.path import realpath, isfile
import mysql.connector
from mysql.connector import errorcode
@theRemix
theRemix / README.md
Last active February 28, 2023 14:37
The Holy Grail - Gulp + Sass + LiveReload + Foundation

Gulp + Sass + LiveReload + Foundation

Goals

To have a gulp workflow that with a single process,

  1. watches for any sass changes, then compiles sass source into css
  2. watches for any changes in the public directory, triggers live-reload
  3. serves your static content in public/
@mojavelinux
mojavelinux / atom-fedora-20.adoc
Last active September 26, 2022 18:21
Instructions for building and launching the Atom text editor on Fedora 20.

Using Atom on Fedora 20

This guide walks you through the steps of building and launching the Atom text editor on Fedora 20.

Building Atom

  1. Install prerequisite packages

@themiurgo
themiurgo / merge-geojsons.py
Last active September 11, 2022 12:41 — forked from migurski/merge-geojsons.py
Merge two or more geojson files.
#!/usr/bin/env python
from json import load, JSONEncoder
from argparse import ArgumentParser, FileType
from re import compile
import sys
float_pat = compile(r'^-?\d+\.\d+(e-?\d+)?$')
charfloat_pat = compile(r'^[\[,\,]-?\d+\.\d+(e-?\d+)?$')
@Kedrigern
Kedrigern / ss.sh
Created April 3, 2012 17:45
BASH: Sorted files from gived dirs by file's sufixes. And it is little bit complicated than just copy (for example see arg LIMIT etc.).
#!/bin/bash
# Author: Ondřej Profant, 2012
# Email: ondrej.profant <> gmail.com
# Licence: GPL
# Sorted files from gived dirs by file's sufixes. And it is little bit complicated than just copy (for example see arg LIMIT etc.).
# I use it as final step after PhotoRec recovery app.
# Sorry for Czech texts.
# TODO:
# -- cmd args
# -- clean code
@Kedrigern
Kedrigern / Tree.hs
Last active March 27, 2024 00:43
Implementation of binary search tree in Haskell
{- Implementation of BST (binary search tree)
Script is absolutly free/libre, but with no guarantee.
Author: Ondrej Profant -}
import qualified Data.List
{- DEF data structure -}
data (Ord a, Eq a) => Tree a = Nil | Node (Tree a) a (Tree a)
deriving Show
@tynovsky
tynovsky / presenters-HomepagePresenter.php
Created September 9, 2011 21:11
Autocomplete: jqueryUI + Nette
<?php
use Nette\Application\UI\Form;
use Nette\Application\Responses\JsonResponse;
class HomepagePresenter extends BasePresenter
{
private $data = array(
"pozdrav" => array(
'ahoj', 'nazdar', 'cau', 'ahojda', 'nazdarecek', 'caues'