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
class Person | |
{ | |
private String name; | |
private Address address; | |
private int age; | |
public Person(String name, Address address, int age) | |
{ | |
this.assertName(name); | |
this.assertAddress(address, age); | |
this.assertAge(age); |
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 | |
$inst = new class("> ") { | |
private $prefix; | |
function __construct(string $prefix) | |
{ | |
$this->prefix = $prefix; | |
} | |
function log($msg) |
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
[user] | |
name = Martin Takáč | |
email = martin@takac.name | |
[push] | |
# default = matching | |
default = simple | |
[core] | |
autocrlf = 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
/** | |
* Vrátí seznam článků. | |
* @param $flag | |
*/ | |
function getArticleList($flag) | |
{ | |
// ... | |
} | |
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
// Ověříme, zda má nějaké BCC adresy. | |
if (count($data['Message']['bcc'])) { | |
//... | |
} |
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 UserDatabaseTable | |
{ | |
const | |
TABLE_NAME = 'users', | |
COLUMN_ID = 'id', | |
COLUMN_NAME = 'username', | |
COLUMN_EMAIL = 'email', |
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
[extensions] | |
strip = | |
shelve = | |
rebase = | |
[alias] | |
out-log = out -q --template '{rev}: {desc}\n' | |
out-files = !$HG out -q --template '{files}\n' | sort | uniq | |
push-this = !$HG push -b `hg branch` | |
push-this-force = !$HG push -b `hg branch` -f |
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
using System; | |
namespace Une | |
{ | |
class Person | |
{ | |
private string last; | |
private string first; | |
public Person(string lastName, string firstName) |
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 | |
$file = __dir__ . '/file-1.jpg'; | |
header('Content-Description: File Transfer'); | |
header("Content-Length: ".filesize($file)); | |
header("Content-Disposition: attachment; filename=\"" . basename($file) . "\";"); | |
readfile($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
class Age | |
{ | |
private int val; | |
Age(int val) | |
{ | |
assertInt(0, 150); | |
this.val; | |
} | |
int getVal() | |
{ |
NewerOlder