Skip to content

Instantly share code, notes, and snippets.

Jan Pecha janpecha

View GitHub Profile
@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;
@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 / 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 / .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 / 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 / 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 / Nette Action Method
Created Sep 5, 2012
Gedit3 Snippets for Nette Framework
View Nette Action Method
public function action${1:Default}()
{
$0
}
@janpecha
janpecha / changes.txt
Created Sep 6, 2012
Hezčí vyhledávací pole na CSFD.cz
View changes.txt
* 2012-09-09
- políčko nepřekrývá "uživatelskou zónu", když je uživatel přihlášen, ale zmenší svoji šířku.
View gist:3717794
Private Sub Form_Load()
' Naberem promenne
xxx = False
'' Naplneni pomocnych poli
relX(0) = 1
relX(1) = 1
relX(2) = 0
relX(3) = -1
'---
relY(0) = 0
@janpecha
janpecha / youtube.css
Last active Oct 13, 2015
Youtube design tuning
View youtube.css
/** Youtube Tuning CSS
* @author Jan Pecha, 2012-2013
* @license New BSD License
* @version 2013-08-16-1
*/
/*player-width player-height*/
/* Zarovnani na stred */
#yt-masthead, #page-container, #alerts, #footer-hh, #masthead-subnav, #content-container {
width: 1124px !important;
margin: 0 auto !important;
You can’t perform that action at this time.