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
this.tramwayApiService.getTeacher() | |
.pipe( | |
concatMap( | |
res => this._httpClient.get<Response>('https://tramway.skyeng.loc/api/file-storage/teachers/profileFilesIsUploaded?teacherId=' + res.data.id) | |
) | |
).subscribe( | |
response => { | |
console.log(response) | |
} | |
) |
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
sudo apt-get purge nvidia* | |
sudo apt-get install xserver-xorg-video-nouveau | |
sudo reboot |
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
import org.jetbrains.kotlin.gradle.dsl.Coroutines | |
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | |
val ktor_version: String by project | |
val kotlin_version: String by project | |
val logback_version: String by project | |
plugins { | |
application | |
kotlin("jvm") version "1.3.20" |
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 | |
declare(strict_types=1); | |
use Symfony\Component\Filesystem\Filesystem; | |
use Symfony\Component\Finder\Finder; | |
require_once 'vendor/autoload.php'; |
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 | |
$code = <<<'CODE' | |
protected $baseUrl = '/api/countries'; | |
$client->request('GET', $this->baseUrl . "kek"); | |
$client->request('GET', $this->baseUrl.'kek'); | |
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 Acme { | |
public funcltion foo($param): void{ | |
if($this->canDoIt($param) === false){ | |
return; | |
} | |
//some logic |
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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <sys/ioctl.h> | |
#include <sys/mman.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <linux/fb.h> |
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 | |
public function test_was_called() | |
{ | |
$eventDispatcher = new EventDispatcher(); | |
$mockLlistener = $this->createMock(Listener::class); | |
$mockListener | |
->expects($this->once()) | |
->method('onData'); |
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
#define BOOST_ASIO_HAS_BOOST_CHRONO | |
#define BOOST_CHRONO_HAS_CLOCK_STEADY | |
#include <boost/asio/io_service.hpp> | |
#include <boost/asio/write.hpp> | |
#include <boost/asio/steady_timer.hpp> | |
#include <boost/asio/ssl.hpp> | |
#include <boost/bind.hpp> |
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
sudo dnf install https://rpms.remirepo.net/fedora/remi-release-25.rpm | |
sudo dnf --enablerepo=remi --enablerepo=remi-php71 install httpd php php-common --best --allowerasing | |
sudo dnf --enablerepo=remi --enablerepo=remi-php71 install php-pecl-apcu php-cli php-pear php-pdo php-mysqlnd php-pgsql php-pecl-mongodb php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml |
NewerOlder