This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{- 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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+)?$') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 10_basic.py | |
# 15_make_soup.py | |
# 20_search.py | |
# 25_navigation.py | |
# 30_edit.py | |
# 40_encoding.py | |
# 50_parse_only_part.py |
OlderNewer