This file contains hidden or 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
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File "C:\Users\ld\bootmac.ps1" |
This file contains hidden or 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 DataParser{ | |
public $data; | |
public function __construct($data){ | |
$this->data = $data; | |
} | |
public function parse(){ |
This file contains hidden or 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 | |
// $model->getParent() | |
// Данная задача на работу со структурой данных, данная задача не о наследовании. | |
// Нельзя менять сигнатуру функции. | |
// Нельзя менять сигнатуру класса модели, в данной задаче применяется только метод getParent класса Model. | |
// Написание своих функций для использование в этой функции разрешается. | |
// Reflection НЕ применять | |
function getAllParents(Model $model) | |
{ | |
if($model->getParent() != null){ |
This file contains hidden or 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 actionLink() | |
{ | |
$url = 'https://accounts.google.com/o/oauth2/auth'; | |
$redirect_uri = 'http://hh.dev/index.php?r=things/token'; | |
$client_id = ''; | |
$params = array( | |
'redirect_uri' => $redirect_uri, | |
'response_type' => 'code', | |
'client_id' => $client_id, |