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
1. Jakými instrukcemi v jazyce symbolických instrukcí (asembleru) můžete měnit pořadí provádění instrukcí? | |
Podmíněný skok | |
Nepodmíněný skok | |
Skok do podprogramu (typicky call) |
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
/** | |
* @Route("/{model}", name="model_view") | |
* @Template() | |
*/ | |
public function viewAction($model) | |
{ | |
/** @var EntityManager $entityManager */ | |
$entityManager = $this->getDoctrine()->getManager(); | |
/** @var RoomModel $model */ | |
$model = $entityManager |
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
/** | |
* @Route("/{room}/new", name="model_new") | |
* @Template() | |
*/ | |
public function newAction(Request $request,$room) | |
{ | |
$form = $this->createForm(new RoomModelType(), new RoomModel()); | |
if($request->isMethod('POST')) | |
{ |
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 CTable { | |
public: | |
CTable(); | |
~CTable(); | |
void insert(std::vector<std::pair<std::string,CColumn*> > params); | |
void select(std::string column); | |
void deleteRows(std::vector<int> rows); | |
void printRows(std::vector<int> rows, std::vector<std::string> columns); | |
void insertRows(std::vector<std::string> values); | |
std::vector<int> findBy(std::string column, std::string 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
# ~/.bashrc | |
# Spusti php built-in server a otevre prohlizec | |
function psrv() { | |
PORT=8888 | |
ADDRESS='localhost' | |
BROWSER="chromium-browser" | |
[[ -n "$1" ]] && PORT=$1 | |
[[ -n "$2" ]] && ADDRESS=$2 | |
[[ -n "$3" ]] && BROWSER=$3 |
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
public function testFormattingDatesBasedOnConfig() | |
{ | |
$stub = $this->getMock('Henry\Config',array('get')); | |
$stub->expects($this->any()) | |
->method('get') | |
->will($this->returnValue('c')); | |
$formatter = new DateFormatter($stub); | |
$this->assertEquals('c',$stub->get('param')); |
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
$form->addTextarea("text", NULL) | |
->setAttribute('rows', 20) | |
->setAttribute('cols',60) | |
->getControlPrototype()->class("texyla"); |
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
function .() { | |
set +o monitor | |
PORT=8888 | |
ADDRESS='localhost' | |
BROWSER="chromium-browser" | |
[[ -n "$1" ]] && PORT=$1 | |
[[ -n "$2" ]] && ADDRESS=$2 | |
[[ -n "$3" ]] && BROWSER=$3 | |
CURRENT=`pwd` | |
[[ ! -f "index.php" ]] && cd www |
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 | |
/** | |
* User: henry, Date: 7/31/13,Time: 12:11 AM | |
*/ | |
namespace App; | |
use Nette\Application\UI\Form; | |
class ArticleForm extends Form |
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 BaseEntity extends IdentifiedEntity { | |
public function __construct($data = NULL) | |
{ | |
parent::__construct(); | |
if($data) | |
$this->setData($data); | |
} | |
public function setData($data) |
OlderNewer