Skip to content

Instantly share code, notes, and snippets.

Avatar

Jan Pecha janpecha

View GitHub Profile
@janpecha
janpecha / Nette Action Method
Created Sep 5, 2012
Gedit3 Snippets for Nette Framework
View Nette Action Method
public function action${1:Default}()
{
$0
}
@janpecha
janpecha / convert2mp3
Created Sep 2, 2012
Converting media files to MP3. Vyžaduje `ffmpeg`.
View convert2mp3
#!/bin/bash
# saves the path to this script's directory
dir=` dirname $0 `
# absolutizes the path if necessary
if echo $dir | grep -v ^/ > /dev/null; then
dir=` pwd `/$dir
fi
@janpecha
janpecha / nakn.js
Last active Oct 9, 2015
Vylepšení formuláře pro zadání čísla parcely na nahlizenidokn.cuzk.cz - automaticky přejde na další políčko při stisknutí lomítka. ZATÍM JEN PRO OPERU.
View nakn.js
/** Vylepseni formulare na Nahlizeni do katastru nemovistosti
*
* @author Jan Pecha, <janpecha@email.cz>
* @version 2013-08-12-2
* @license New BSD License
*/
function nah_SelectAreaFormHelper()
{
var el = document.getElementById('ctl00_bodyPlaceHolder_txtParcis');
@janpecha
janpecha / .htaccess
Last active Oct 9, 2015
Dynamické subdomény pomocí .htaccess
View .htaccess
### Source code moved to https://github.com/janpecha/htaccess-subdomains/ ###
## Custom Error Pages
#ErrorDocument 404 /errors/e404.html
<IfModule mod_dir.c>
DirectorySlash Off
</IfModule>
Options -Indexes
@janpecha
janpecha / ytdl
Created Aug 23, 2012
Shortcut for youtube-dl
View ytdl
#!/bin/bash
# saves the path to this script's directory
dir=` dirname $0 `
# absolutizes the path if necessary
if echo $dir | grep -v ^/ > /dev/null; then
dir=` pwd `/$dir
fi
@janpecha
janpecha / style.css
Created Jul 23, 2012
Piratskenoviny.cz Better Style
View style.css
@import url('typro.css');
body {
border-top: 6px solid #222;
padding-bottom: 3em;
}
body * {
font-family: inherit !important;
font-size: inherit !important;
@janpecha
janpecha / adminer.css
Created Jul 2, 2012
Adminer Skin (based on default Nette Adminer skin)
View adminer.css
/* CSS by Brade - www.bradezone.com */
/* Icons by Hever [hev.cz] - June 2009, ver 0.1.3 */
/* Used icons: Silk icon set 1.3 by Mark James --- http://www.famfamfam.com/lab/icons/silk/ */
/* modified by davidgrudl */
/* modified by Jan Pecha, <janpecha@email.cz>, 2012-09-16 */
body {
background: #FFF;
color: #333;
You can’t perform that action at this time.