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
namespace Maui.Controls.Sample; | |
public class GraphicsDrawable(Microsoft.Maui.Graphics.IImage[] images) : IDrawable | |
{ | |
public void Draw(ICanvas canvas, RectF dirtyRect) | |
{ | |
// 3x3 matrix composed of 100x100 images. The number of images is always 9. | |
for (int i = 0; i < images.Length; i++) | |
{ | |
int row = i / 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
<?php | |
$countries = array( | |
'eu' => array( | |
'cs' => 'Cesko', | |
'sk' => 'Slovensko', | |
), | |
'en' => 'USA' | |
); |
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 A { | |
/** | |
* @return self | |
*/ | |
public function someMethod() { | |
return $this; | |
} |
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
/** | |
* Live Form Validation for Nette 2.0 | |
* | |
* @author Radek Ježdík, David Grudl | |
* @license New BSD License | |
*/ | |
var LiveForm = { | |
options: { | |
controlErrorClass: 'form-control-error', |
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 | |
protected function createComponentGrinder() | |
{ | |
$model = new Grinder\Models\DibiFluentModel($this->getModel('orders')->getFluentForYourEvents()); | |
$grid = new Grinder\Grid($model); | |
$grid->setRenderer(new Grinder\Renderers\TableRenderer); | |
// if not present then $this->session is not initialized in grid.php and you'll get an exception | |
$grid->setUpProtection($this->getSession()); |