var knopka = document.getElementById ('push');
knopka.addEventListener('click',func1);
function func1() {
var shadow = document.getElementById ('ts1');
if (shadow.style.display !== 'none'){
shadow.style.display="none";
}else{
shadow.style.display="block";
}
};
bool find(node* n, int value)
{
node* ptr = n;
while(ptr != nullptr)
{
if(ptr->value == value) return true;
ptr = ptr->next;
}
return false;
}
node* find(node* n, int value)
{
node* ptr = n;
while(ptr != nullptr)
{
if(ptr->value == value) return ptr;
ptr = ptr->next;
}
return ptr;
}
node* result = find(...);
if(result)
{
//...
}
<script type="text/javascript">
window.__STATE__ = <?= json_encode($allData) ?>;
</script>
created () {
if (window.__STATE__ && window.__STATE__.myData) {
this.myData = window.__STATE__.myData;
} else {
axios.get( .... )
}
}
'formatter' => [
'class' => 'yii\i18n\Formatter',
'dateFormat' => 'dd MMMM yyyy',
'defaultTimeZone' => 'Europe/Kiev',
'datetimeFormat' => 'php: Y-m-d | H.i.s',
'locale' => 'ru'
]
'date:datetime'
2018-05-25 | 18.54.21
mkcd() {
mkdir $1
cd $1
}
~> mkcd foobar
~/foobar>
$ wget https://phar.phpunit.de/phpunit.phar
$ chmod +x phpunit.phar
$ sudo mv phpunit.phar /usr/local/bin/phpunit
$ phpunit --version
таким образом скачанный phpunit.phar превращается в phpunit, который расположен