This file contains 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 bash | |
repo_url_prefix="https://github.com/pirati-web/" | |
repo_prefix="./git/" | |
deploy_prefix="./jekyll/" | |
jekyll_bin="/usr/local/bin/jekyll" | |
repos=( strednicechy.pirati.cz jihocesky.pirati.cz ) | |
function prerequisite { | |
mkdir -p "$deploy_prefix" |
This file contains 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 bash | |
# usage: ./check.sh *.csv | |
# Check if given csv have correct format for currency. | |
col_money="4 6" | |
col_date="17 18 19 20" | |
lines="2 3 4" | |
for f in $@; do | |
if file "$infile" | grep "UTF-8"; then |
This file contains 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
#Properties saved by PropertyProvider | |
#Mon Jun 08 23:12:27 CEST 2015 | |
visibleSignature.img= | |
keystore.type=BCPKCS12 | |
signature.reason= | |
tsa.url= | |
inpdf.file= | |
keystore.keyIndex=0 | |
signature.location= | |
tsa.cert.file= |
This file contains 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/php | |
<?php | |
class A { | |
public $a; | |
public function __construct($a) { | |
$this->a = $a; | |
} |
This file contains 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
SELECT *, md5(data) as md5, TRUNCATE(LENGTH(`data`)/1000,1) as "SIZE (kB)" | |
FROM `image` |
This file contains 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 | |
header="header.html.part" | |
for input in *.md; do | |
output="${input%.md}.html" | |
echo "input: $input output $output" | |
pandoc --no-highlight -o "$output" -H "$header" "$input" |
This file contains 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<title>Dices</title> | |
<meta http-equiv="content-type" content="text/html;charset=utf-8" /> | |
<meta name="author" content="Ondřej Profant" /> | |
</head> |
This file contains 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 | |
/** | |
* Homepage presenter. | |
*/ | |
class HomepagePresenter extends BasePresenter | |
{ | |
public function __construct(\Nette\Http\Session $session) | |
{ | |
parent::__construct(); |
This file contains 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 | |
class Column extends \Nette\Object | |
{ | |
/** | |
* @var string | |
*/ | |
public $name; | |
/** |
This file contains 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 | |
namespace BackendModule; | |
class LocaleForm extends BaseForm | |
{ | |
/** @var */ | |
protected $repository; | |
/** @var */ |