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 {Person} from './Person.js'; | |
import {Student} from './Student'; | |
let person = new Person('Ali') | |
let student = new Student('Veli') | |
person.work() | |
student.work() |
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
"scripts": { | |
"build": "webpack --watch", | |
"start": "webpack-dev-server" | |
}, |
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
const webpack = require('webpack'); | |
const path = require('path'); | |
const config = { | |
//Başlangıç noktası olan ana javascript dosyamız | |
entry: './src/index.js', | |
mode: 'development', | |
//Ana dosyanın transpile edilip çıktığı dizin ve dosya adı. /dist/bundle.js | |
output: { | |
path: path.resolve(__dirname, 'dist'), |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Webpack App</title> | |
</head> | |
<body> | |
<h1>Webpack App!</h1> | |
<h2>Hatırlatma: Konsolu kontrol et.</h2> | |
<!-- Oluşturduğumuz javascript dosyasını sayfaya dahil ediyoruz --> |
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 | |
namespace Managar; | |
class Gsm | |
{ | |
protected static $instance = null; | |
public $drivers = []; | |
/** |
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 | |
namespace Managar; | |
class Gsm | |
{ | |
protected static $instance = null; | |
public $drivers = []; | |
/** |
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 | |
namespace Managar; | |
use GuzzleHttp\Client; | |
class TurkcellDriver | |
{ | |
protected static $userName = "mustafa"; | |
protected static $password = "acar"; |
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 | |
namespace Managar; | |
use GuzzleHttp\Client; | |
class VodafoneDriver | |
{ | |
protected static $userName = "mustafa"; | |
protected static $password = "acar"; |
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 | |
//Gsm.php ye ekliyoruz | |
/** | |
* Managar olan Gsm sınıfında, | |
* Erişilmeye çalışan static method yoksa; | |
* Gsm sınıfı kendini instance eder ve kendinden bu method çağr | |
* | |
* @param $method | |
* @param $args |
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
cd /var/named |