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
interface IImagePersistor | |
{ | |
void Save(Image image, string name); | |
} | |
class FilePersistor : IImagePersistor | |
{ | |
public void Save(Image image, string name) | |
{ | |
var stream = File.Open(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 | |
class AnyKeyArray implements ArrayAccess, Iterator, Countable { | |
private $values = array(); | |
// ArrayAccess | |
function offsetSet($key, $value) { | |
$this->values[serialize($key)] = $value; | |
} | |
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 | |
define('DUMP_FILENAME', 'dump.sql'); | |
define('SERVER', 'localhost'); | |
define('USERNAME', 'ODBC'); | |
define('PASSWORD', ''); | |
define('DB', 'software'); | |
define('ADMINER_ROOT', 'adminer/'); | |
function adminer_object() { | |
class AdminerDump extends Adminer { |
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
Ahoj v piškvorkách naslepo. | |
Povolené příkazy jsou: | |
new - nová hra | |
quit - konec | |
[a-i][0-9] - tah na pole, kde řada je pozice a, b, c, d, e, f, g, h, i. Sloupec je 1 až 9. | |
Formát zápisu je např. e5. | |
<?php | |
function isWinningInDirection(array $field, $x, $y, $a, $b) { | |
// průzkum jedním směrem | |
for ($i = 1; $i < 5; $i++) { |
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
Ahoj v piškvorkách naslepo. | |
Povolené příkazy jsou: | |
new - nová hra | |
quit - konec | |
[a-i][0-9] - tah na pole, kde řada je pozice a, b, c, d, e, f, g, h, i. Sloupec je 1 až 9. | |
Formát zápisu je např. e5. | |
<?php | |
class BlindTicTacToe { | |
protected $field; | |
protected $x, $y; |
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 | |
if (X) { | |
$a = 1; | |
} | |
// ... | |
if (X) { | |
$a; | |
} | |
while (true) { |
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
const lat = 50.6494; | |
const lng = 15.74; | |
const degrees = 195; | |
const place = {"latitude":50.6341,"longitude":15.7263}; | |
const terrainProvider = Cesium.createWorldTerrain(); | |
const terrainExaggeration = 1.5; | |
const cesium = new Cesium.Viewer('cesiumContainer', { | |
terrainProvider, | |
terrainExaggeration, |
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
common: | |
parameters: | |
adminer_editor: | |
role: moderator | |
database: | |
host: localhost | |
dbname: yourDbName | |
user: yourDbUser | |
password: yourDbOass |
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 | |
/** Convention foreign keys: plugin for Adminer | |
* Links for foreign keys by convention user_id => users.id. Useful for Ruby On Rails like standard schema conventions. | |
* @author Ivan Nečas, @inecas | |
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0 | |
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) | |
*/ | |
class ConventionForeignKeys { |
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 | |
/** | |
* Show the history of the latest selected tables. Cookies based. | |
* Set the js variable history_length to define the history length. | |
* Works only with current browsers. | |
* @link http://www.adminer.org/plugins/#use | |
* @author Ale Rimoldi, http://www.ideale.ch/ | |
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0 | |
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) |
OlderNewer