- install Kodi 18
- install Netflix plugin from: https://github.com/asciidisco/plugin.video.netflix
- copy ** libwidevine.dylib** to $HOME/Library/Application Support/Kodi/cdm
https://redirector.gvt1.com/edgedl/widevine-cdm/970-mac-x64.zip
/** | |
* callback for array_filter to get array without element with $id | |
*/ | |
class idNotEqual { | |
private $id; | |
function __construct($id) { | |
$this->id = $id; | |
} |
public function del_slow($id) { | |
$offset = 0; | |
foreach ($this->products as $p) { | |
if ($p->getId() == $id) { | |
array_splice($this->products, $offset, 1); | |
break; | |
} | |
$offset++; | |
} | |
} |
class BowlingGame { | |
private $rolls = array(); | |
private $currentRoll = 0; | |
public function __construct() { | |
for ($i = 0; $i < 21; $i++) { | |
$this->rolls[$i] = 0; | |
} | |
} |
// dbconfig.json | |
{ | |
"server": "localhost", | |
"dbname": "cl_shop", | |
"user" : "root", | |
"pass" : "root" | |
} | |
// class definition | |
class DB { |
moved |
╔═══════════════════════╦═════════════╦════════════╦══════════════╦════════════╦════════════╗ | |
║ PHP Project ║ Classes ║ Methods ║ Properties ║ Functions ║ Variables ║ | |
╠═══════════════════════╬═════════════╬════════════╬══════════════╬════════════╬════════════╣ | |
║ Akelos Framework ║ PascalCase ║ camelCase ║ camelCase ║ lower_case ║ lower_case ║ | |
║ CakePHP Framework ║ PascalCase ║ camelCase ║ camelCase ║ camelCase ║ camelCase ║ | |
║ CodeIgniter Framework ║ Proper_Case ║ lower_case ║ lower_case ║ lower_case ║ lower_case ║ | |
║ Concrete5 CMS ║ PascalCase ║ camelCase ║ camelCase ║ lower_case ║ lower_case ║ | |
║ Doctrine ORM ║ PascalCase ║ camelCase ║ camelCase ║ camelCase ║ camelCase ║ | |
║ Drupal CMS ║ PascalCase ║ camelCase ║ camelCase ║ lower_case ║ lower_case ║ | |
║ Joomla CMS ║ PascalCase ║ camelCase ║ camelCase ║ camelCase ║ camelCase ║ |
const SocialIcons = | |
[ | |
"glass", | |
"music", | |
"search", | |
"envelope-o", | |
"heart", | |
"star", | |
"star-o", | |
"user", |
https://redirector.gvt1.com/edgedl/widevine-cdm/970-mac-x64.zip
<services> | |
<!--REPOSITORY--> | |
<service id="test.provider_low_level_config_repository" class="mysiar\AppBundle\Repository\ConfigRepository"> | |
<factory service="doctrine.orm.entity_manager" method="getRepository" /> | |
<argument type="string">mysiar\AppBundle\Entity\Config</argument> | |
</service> | |
</services> |