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
-- kontrola uzávorkování bitových operátorů | |
\s[|&^]\s([a-zA-Z]+::[A-Z_]|[0-9]+)+\s(!?==+|[<>]=?|<>)\s |
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
SELECT | |
/*fk.CONSTRAINT_SCHEMA, | |
fk.CONSTRAINT_NAME, | |
fk.TABLE_NAME, | |
col.COLUMN_NAME, | |
fk.REFERENCED_TABLE_NAME, | |
col.REFERENCED_COLUMN_NAME,*/ | |
CONCAT('SELECT * FROM `', fk.TABLE_NAME, '` WHERE `', col.COLUMN_NAME, '` NOT IN (SELECT `', col.REFERENCED_COLUMN_NAME, '` FROM `', fk.REFERENCED_TABLE_NAME, '`);') AS query | |
FROM `REFERENTIAL_CONSTRAINTS` fk | |
JOIN KEY_COLUMN_USAGE col USING (CONSTRAINT_SCHEMA, CONSTRAINT_NAME) |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<title>Blikátko simulátor</title> | |
</head> | |
<body> | |
<style> | |
html, body { margin: 0; padding: 0; } | |
</style> |
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
#ssh-rsa AAAA[0-9A-Za-z+/]+[=]{0,3} ([^@]+@[^@]+)# | |
// this is the most simple case. see more complete regexps in coments below | |
// http://generator.my-addr.com/generate_ssh_public_rsa_key-private_rsa_key-ssh_pair_online_tool.php | |
// https://help.ubuntu.com/community/SSH/OpenSSH/Keys | |
// http://www.ietf.org/rfc/rfc4716.txt |
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 | |
namespace Dogma\Database; | |
/** | |
* query(), fetch?(), exec(): | |
* New preprocesor makes dibi-like syntax possible. | |
* Question mark (?) is not required and *not allowed* in alternative syntax. | |
* eg. $db->exec("UPDATE x SET y = ", $y, "WHERE z = ", $z); |
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
/** | |
* Make table body scrollable, with the table header always visible. | |
* Table shrinks vertically to fit the browser viewport. | |
* | |
* requirements: | |
* - jQuery framework required (tested with 1.6.2) | |
* - header must be wrapped in <thead> element | |
* | |
* warnings: | |
* - table <caption> is not supported |
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
/** | |
* Alternative style for Adminer. Zrobeno 7.4.2011 | |
* @author Vlasta Neubauer [@paranoiq] | |
*/ | |
/* -- fonts ----------------------------------------------------------------- */ | |
body { | |
font-size: 11pt; | |
} | |
body, select, option, optgroup, button { |
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
sada funkcí pro skládání SQL dotazů v Excelu | |
autor: Vlasta Neubauer [@paranoiq] | |
licence: public domain | |
pro koho to je: | |
- pro každého, kdo musí ručně upravovat/importovat větší množství záznamů a nestačí mu prostředky GUI nástrojů a ručně psaného SQL | |
co to umí: | |
- jednoduše vytvářet z dat v Excelu SQL dotazy typu INSERT, UPDATE, DELETE, INSERT IGNORE, REPLACE a INSERT ON DUPLICATE KEY UPDATE |
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
formátování <fieldset> a <legend> je opravdu vojeb. veškerá řešení, | |
která jsem našel vyžadovala přidat do kódu nějaké pomocné <div>y nebo | |
<span>y. takové řešení mi ale nevyhovuje | |
nakonec jsem dospěl k tomuto. vypadá na pixel stejně ve všech novějších | |
prohlížečích včetně IE7. v IE6 a starších (bez selektorů + a >) nefunguje | |
falešný padding |
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 | |
// test PHP funkce strftime() na Windows | |
echo '<h2>strftime()</h2>'; | |
echo '%a: ' . strftime('%a') . '<br>'; | |
echo '%A: ' . strftime('%A') . '<br>'; | |
echo '%d: ' . strftime('%d') . '<br>'; | |
echo '%e: ' . strftime('%e') . '<br>'; | |
echo '%j: ' . strftime('%j') . '<br>'; |